Bläddra i källkod

Keep horizontal padding on a per message level

JC Brand 6 år sedan
förälder
incheckning
55f7183f36
2 ändrade filer med 4 tillägg och 3 borttagningar
  1. 1 1
      sass/_chatbox.scss
  2. 3 2
      sass/_messages.scss

+ 1 - 1
sass/_chatbox.scss

@@ -209,7 +209,7 @@
         .chat-content {
             display: flex;
             flex-direction: column-reverse;
-            padding: 1em;
+            padding: 1em 0;
             height: 100%;
             font-size: var(--message-font-size);
             color: var(--text-color);

+ 3 - 2
sass/_messages.scss

@@ -33,6 +33,7 @@
                 color: var(--separator-text-color);
                 display: inline-block;
                 line-height: 2em;
+                padding: 0 1em;
                 position: relative;
                 z-index: 5;
             }
@@ -43,7 +44,7 @@
             font-size: var(--message-font-size);
             line-height: var(--line-height-small);
             font-size: 90%;
-            padding: 0.17rem 0;
+            padding: 0.17rem 1rem;
 
             &.badge {
                 color: var(--chat-head-text-color);
@@ -79,7 +80,7 @@
             display: flex;
             width: 100%;
             flex-direction: row;
-            padding: 0.125rem 0;
+            padding: 0.125rem 1rem;
 
             &.onload {
                 animation: colorchange-chatmessage 1s;