Skip to content

Commit f4500c7

Browse files
committed
(UI) improve message css
1 parent 7679112 commit f4500c7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/ChatWindow/ChatMessage.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ export default {
235235
overflow-wrap: break-word;
236236
position: relative;
237237
white-space: normal;
238-
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
239-
0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
238+
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
239+
0 1px 2px 0 rgba(0, 0, 0, 0.12);
240240
}
241241
242242
.message-box {
@@ -251,7 +251,7 @@ export default {
251251
}
252252
253253
.message-container {
254-
padding: 8px 10px;
254+
padding: 3px 10px;
255255
align-items: end;
256256
min-width: 100px;
257257
}
@@ -266,7 +266,7 @@ export default {
266266
color: var(--chat-color-message-text);
267267
border-radius: 4px;
268268
font-size: 14px;
269-
padding: 8px 8px 3px;
269+
padding: 6px 10px 3px;
270270
white-space: pre-wrap;
271271
z-index: 1;
272272
display: block;
@@ -278,13 +278,13 @@ export default {
278278
-webkit-transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
279279
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
280280
will-change: box-shadow;
281-
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
282-
0 1px 3px 0 rgba(0, 0, 0, 0.12);
281+
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
282+
0 1px 2px 0 rgba(0, 0, 0, 0.12);
283283
}
284284
285285
.message-highlight {
286-
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
287-
0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
286+
box-shadow: 0px 2px 2px -2px rgba(0, 0, 0, 0.2),
287+
0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 4px 0px rgba(0, 0, 0, 0.12);
288288
}
289289
290290
.message-current {
@@ -318,9 +318,8 @@ export default {
318318
background-repeat: no-repeat !important;
319319
height: 250px;
320320
width: 250px;
321-
margin-bottom: 5px;
322321
border-radius: 4px;
323-
margin: 0 auto 5px;
322+
margin: 3px auto 5px;
324323
transition: 0.4s filter linear;
325324
}
326325
@@ -363,10 +362,11 @@ export default {
363362
display: flex;
364363
flex-wrap: wrap;
365364
align-items: center;
366-
}
365+
margin-top: 3px;
367366
368-
.icon-file svg {
369-
margin-right: 5px;
367+
.icon-file svg {
368+
margin-right: 5px;
369+
}
370370
}
371371
372372
.icon-edited {
@@ -402,7 +402,7 @@ export default {
402402
}
403403
404404
.button-delete {
405-
bottom: 26px;
405+
bottom: 24px;
406406
}
407407
408408
.button-edit {

0 commit comments

Comments
 (0)