style: improved visual separation and aesthetic

- Added a border radius to scrollbar thumb styles for improved aesthetic.
- Updated the Divider component to include a border for better visual separation.
- Added border to the divider in SelectModelPopup for improved visibility.
This commit is contained in:
kangfenmao 2024-10-13 00:38:13 +08:00
parent 693b06c126
commit fcce241c82
3 changed files with 3 additions and 5 deletions

View File

@ -10,6 +10,7 @@
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: var(--color-scrollbar-thumb); background: var(--color-scrollbar-thumb);
border-radius: 4px;
&:hover { &:hover {
background: var(--color-scrollbar-thumb-hover); background: var(--color-scrollbar-thumb-hover);
} }

View File

@ -102,7 +102,7 @@ const PopupContainer: React.FC<Props> = ({ resolve }) => {
size="middle" size="middle"
/> />
</HStack> </HStack>
<Divider style={{ margin: 0 }} /> <Divider style={{ margin: 0, borderBlockStartWidth: 0.5 }} />
<Container> <Container>
{agents.map((agent) => ( {agents.map((agent) => (
<AgentItem <AgentItem

View File

@ -100,7 +100,7 @@ const PopupContainer: React.FC<PopupContainerProps> = ({ model, resolve }) => {
size="middle" size="middle"
/> />
</HStack> </HStack>
<Divider style={{ margin: 0 }} /> <Divider style={{ margin: 0, borderBlockStartWidth: 0.5 }} />
<Container> <Container>
{filteredItems.length > 0 ? ( {filteredItems.length > 0 ? (
<StyledMenu <StyledMenu
@ -123,9 +123,6 @@ const Container = styled.div`
height: 50vh; height: 50vh;
margin-top: 10px; margin-top: 10px;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar {
display: none;
}
` `
const StyledMenu = styled(Menu)` const StyledMenu = styled(Menu)`