Skip to content

Commit

Permalink
Enhance AIChat component styles with scrollbar customization and Ment…
Browse files Browse the repository at this point in the history
…ionList adjustments. Added custom scrollbar styles to improve UI aesthetics in History component. Updated MentionList styles for better visual consistency, including border removal, adjusted border-radius, and improved hover effects. Enhanced layout with flex properties for better alignment and spacing of elements.
  • Loading branch information
trheyi committed Dec 19, 2024
1 parent db57e4e commit 0c3b821
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,25 @@
overflow-y: auto;
padding: 8px;
min-height: 0;

&::-webkit-scrollbar {
width: 6px;
height: 6px;
}

&::-webkit-scrollbar-thumb {
background: var(--color_border);
border-radius: 3px;

&:hover {
background: var(--color_text_grey);
}
}

&::-webkit-scrollbar-track {
background: var(--color_border_soft);
border-radius: 3px;
}
}

.group {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.mentionList {
position: fixed;
background: var(--color_bg_menu);
border: 1px solid var(--color_border);
border-radius: var(--radius);
border-radius: 8px;
box-shadow: var(--shadow);
border: none;
min-width: 200px;
max-width: 300px;
z-index: 1000;
Expand Down Expand Up @@ -64,7 +64,7 @@

&:hover,
&.selected {
background: var(--color_border_soft);
background-color: var(--color_border_soft);
}

.avatar {
Expand All @@ -84,15 +84,17 @@
flex: 1;
min-width: 0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;

.name {
flex: 1;
font-size: 13px;
color: var(--color_text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 12px;
}

.type {
Expand All @@ -101,6 +103,7 @@
background: var(--color_border_light);
padding: 2px 6px;
border-radius: 4px;
flex-shrink: 0;
}
}
}
Expand Down

0 comments on commit 0c3b821

Please sign in to comment.