Skip to content

Commit

Permalink
fix: enhance sidebar UI
Browse files Browse the repository at this point in the history
  • Loading branch information
vaayne committed Sep 3, 2024
1 parent bd96853 commit 54c158c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/src/components/thread-sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,20 @@ export default function Sidebar() {
<Divider />
<ScrollArea scrollbarSize="4" scrollbars="y">
<LoadingOverlay visible={listThreads.isLoading} />
<Stack align="stretch" justify="start" gap="sm">
<Stack align="start" justify="start" gap="sm">
{listThreads.data &&
listThreads.data.map((item) => (
<Group
justify="space-between"
grow
preventGrowOverflow={false}
gap="2"
gap="xs"
key={item.id}
wrap="nowrap"
>
<Button
radius="md"
color={threadId == item.id ? "accent" : "default"}
justify="space-between"
variant={threadId == item.id ? "filled" : "subtle"}
onClick={() => {
toggleMobileSidebar();
Expand All @@ -122,6 +122,7 @@ export default function Sidebar() {
<ActionIcon
variant="subtle"
color="danger"
size="xs"
onClick={async () => {
await deleteThread.mutateAsync(item.id);
}}
Expand Down

0 comments on commit 54c158c

Please sign in to comment.