Skip to content

Commit cb2e0aa

Browse files
committed
(UI) remove list divider
1 parent 8411746 commit cb2e0aa

File tree

4 files changed

+14
-27
lines changed

4 files changed

+14
-27
lines changed

src/ChatWindow/ChatMessage.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
<div class="menu-item" @click="messageActionHandler(action)">
127127
{{ action.title }}
128128
</div>
129-
<hr class="menu-divider" />
130129
</div>
131130
</div>
132131
</div>
@@ -321,7 +320,7 @@ export default {
321320
.message-card {
322321
background: var(--chat-message-bg-color);
323322
color: var(--chat-message-color);
324-
border-radius: 4px;
323+
border-radius: 8px;
325324
font-size: 14px;
326325
padding: 6px 9px 3px;
327326
white-space: pre-wrap;

src/ChatWindow/MessagesList.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<div class="menu-item" @click="menuActionHandler(action)">
2222
{{ action.title }}
2323
</div>
24-
<hr class="menu-divider" />
2524
</div>
2625
</div>
2726
</div>
@@ -504,7 +503,7 @@ export default {
504503
.reply-box {
505504
width: 100%;
506505
overflow: hidden;
507-
background: var(--chat-message-bg-color-reply);
506+
background: var(--chat-footer-bg-color-reply);
508507
border-radius: 4px;
509508
padding: 8px 10px;
510509
}

src/styles/menu.scss

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
display: block;
44
cursor: pointer;
55
background: var(--chat-dropdown-bg-color);
6+
padding: 6px 0;
67

78
:hover {
89
background: var(--chat-dropdown-bg-color-hover);
@@ -27,24 +28,10 @@
2728
-ms-flex: 1 1 100%;
2829
flex: 1 1 100%;
2930
min-height: 30px;
30-
padding: 8px 16px;
31+
padding: 7px 16px;
3132
position: relative;
3233
}
3334

34-
.menu-divider {
35-
display: block;
36-
-webkit-box-flex: 1;
37-
-ms-flex: 1 1 0px;
38-
flex: 1 1 0px;
39-
max-width: 100%;
40-
height: 0;
41-
max-height: 0;
42-
border: solid;
43-
border-width: thin 0 0 0;
44-
border-color: rgba(0, 0, 0, 0.12);
45-
margin: 0;
46-
}
47-
4835
.menu-options {
4936
position: absolute;
5037
right: 10px;

src/themes/index.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export const defaultThemeColors = {
1616

1717
footer: {
1818
background: '#f0f0f0',
19-
borderInputSelected: '#1976d2'
19+
borderInputSelected: '#1976d2',
20+
backgroundReply: 'rgba(0, 0, 0, 0.08)'
2021
},
2122

2223
content: {
@@ -95,7 +96,8 @@ export const defaultThemeColors = {
9596

9697
footer: {
9798
background: '#131415',
98-
borderInputSelected: '#1976d2'
99+
borderInputSelected: '#1976d2',
100+
backgroundReply: '#1b1c1c'
99101
},
100102

101103
content: {
@@ -117,13 +119,13 @@ export const defaultThemeColors = {
117119

118120
message: {
119121
background: '#22242a',
120-
backgroundMe: '#1F87EC',
122+
backgroundMe: '#4fb381',
121123
color: '#fff',
122124
backgroundDeleted: '#1b1c21',
123-
colorDeleted: '#dadfe2',
125+
colorDeleted: '#a2a5a8',
124126
colorUsername: '#b3bac9',
125127
colorTimestamp: '#ebedf2',
126-
backgroundDate: 'rgba(0, 0, 0, 0.2)',
128+
backgroundDate: 'rgba(0, 0, 0, 0.1)',
127129
colorDate: '#9ca6af',
128130
backgroundReply: 'rgba(0, 0, 0, 0.18)',
129131
colorReplyUsername: '#fff',
@@ -133,8 +135,8 @@ export const defaultThemeColors = {
133135

134136
room: {
135137
colorUsername: '#fff',
136-
colorMessage: '#a2aeb8',
137-
colorTimestamp: '#67717a'
138+
colorMessage: '#6c7278',
139+
colorTimestamp: '#6c7278'
138140
},
139141

140142
icons: {
@@ -186,6 +188,7 @@ export const cssThemeVars = ({
186188
// footer
187189
'--chat-footer-bg-color': footer.background,
188190
'--chat-border-color-input-selected': footer.borderInputSelected,
191+
'--chat-footer-bg-color-reply': footer.backgroundReply,
189192

190193
// content
191194
'--chat-content-bg-color': content.background,
@@ -202,7 +205,6 @@ export const cssThemeVars = ({
202205
'--chat-dropdown-bg-color-hover': dropdown.backgroundHover,
203206

204207
// message
205-
// '--chat-bg-color-message-image': message.backgroundImage,
206208
'--chat-message-bg-color': message.background,
207209
'--chat-message-bg-color-me': message.backgroundMe,
208210
'--chat-message-bg-color-deleted': message.backgroundDeleted,

0 commit comments

Comments
 (0)