Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/elements/chat/chat.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
(click)="showChatAI()"
[hidden]="!chatAiApiEnabled"
aria-label="打开智能问答"
class="chat-action-button"
class="chat-action-button chat-ai-button"
type="button"
>
<img alt="" class="chat-img" src="assets/icons/chat-ai.png" />
Expand Down
26 changes: 20 additions & 6 deletions src/app/elements/chat/chat.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
width: 40px;
padding: 4px;
border-radius: 20px;
color: rgba(255, 255, 255, 0.5);
background: rgba(255, 255, 255, 0.05);
box-shadow: none;
color: var(--el-text-color-light);
background: var(--el-nav-bg-color);
border: 1px solid rgba(255, 255, 255, 0.22);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.32),
0 0 0 1px rgba(0, 0, 0, 0.22),
0 1px 0 rgba(255, 255, 255, 0.16) inset;
pointer-events: auto;
user-select: none;
z-index: 1;
Expand All @@ -36,7 +40,7 @@
padding: 0;
border: 0;
border-radius: 12.5px;
color: rgba(255, 255, 255, 0.5);
color: rgba(255, 255, 255, 0.72);
background: transparent;
cursor: pointer;
transition:
Expand All @@ -46,7 +50,7 @@
&:hover,
&:focus-visible {
color: #fff;
background: rgba(255, 255, 255, 0.08);
background: rgba(255, 255, 255, 0.12);

Check warning on line 53 in src/app/elements/chat/chat.component.scss

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Text does not meet the minimal contrast requirement with its background.

See more on https://sonarcloud.io/project/issues?id=jumpserver_luna&issues=AZ-t3i1JE83D8vcbEh76&open=AZ-t3i1JE83D8vcbEh76&pullRequest=1555
}
}

Expand Down Expand Up @@ -75,7 +79,7 @@
.chat-img {
width: 16px;
height: 16px;
opacity: 0.5;
opacity: 1;
transition: opacity 0.16s ease;
}

Expand All @@ -85,6 +89,16 @@
}
}

.chat-ai-button {
background: var(--el-dropdown-selected-bg-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);

&:hover,
&:focus-visible {
background: var(--el-dropdown-active-bg-color);
}
}

.chat-panel {
position: fixed;
right: 12px;
Expand Down