Skip to content

Commit cd009dc

Browse files
committed
fix: chat box style
1 parent bab6419 commit cd009dc

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

src/app/elements/chat/chat.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
(click)="showChatAI()"
2828
[hidden]="!chatAiApiEnabled"
2929
aria-label="打开智能问答"
30-
class="chat-action-button"
30+
class="chat-action-button chat-ai-button"
3131
type="button"
3232
>
3333
<img alt="" class="chat-img" src="assets/icons/chat-ai.png" />

src/app/elements/chat/chat.component.scss

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
width: 40px;
1919
padding: 4px;
2020
border-radius: 20px;
21-
color: rgba(255, 255, 255, 0.5);
22-
background: rgba(255, 255, 255, 0.05);
23-
box-shadow: none;
21+
color: var(--el-text-color-light);
22+
background: var(--el-nav-bg-color);
23+
border: 1px solid rgba(255, 255, 255, 0.22);
24+
box-shadow:
25+
0 8px 24px rgba(0, 0, 0, 0.32),
26+
0 0 0 1px rgba(0, 0, 0, 0.22),
27+
0 1px 0 rgba(255, 255, 255, 0.16) inset;
2428
pointer-events: auto;
2529
user-select: none;
2630
z-index: 1;
@@ -36,7 +40,7 @@
3640
padding: 0;
3741
border: 0;
3842
border-radius: 12.5px;
39-
color: rgba(255, 255, 255, 0.5);
43+
color: rgba(255, 255, 255, 0.72);
4044
background: transparent;
4145
cursor: pointer;
4246
transition:
@@ -46,7 +50,7 @@
4650
&:hover,
4751
&:focus-visible {
4852
color: #fff;
49-
background: rgba(255, 255, 255, 0.08);
53+
background: rgba(255, 255, 255, 0.12);
5054
}
5155
}
5256

@@ -75,7 +79,7 @@
7579
.chat-img {
7680
width: 16px;
7781
height: 16px;
78-
opacity: 0.5;
82+
opacity: 1;
7983
transition: opacity 0.16s ease;
8084
}
8185

@@ -85,6 +89,16 @@
8589
}
8690
}
8791

92+
.chat-ai-button {
93+
background: var(--el-dropdown-selected-bg-color);
94+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
95+
96+
&:hover,
97+
&:focus-visible {
98+
background: var(--el-dropdown-active-bg-color);
99+
}
100+
}
101+
88102
.chat-panel {
89103
position: fixed;
90104
right: 12px;

0 commit comments

Comments
 (0)