Skip to content

Commit ee01d71

Browse files
authored
server : (webui) fix a very small misalignment (#13387)
* server : (webui) fix a very small misalignment * restore font-bold
1 parent 8c83449 commit ee01d71

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

tools/server/public/index.html.gz

11 Bytes
Binary file not shown.

tools/server/webui/src/components/Sidebar.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
ArrowDownTrayIcon,
88
EllipsisVerticalIcon,
99
PencilIcon,
10+
PencilSquareIcon,
1011
TrashIcon,
1112
XMarkIcon,
1213
} from '@heroicons/react/24/outline';
@@ -76,15 +77,19 @@ export default function Sidebar() {
7677
})}
7778
onClick={() => navigate('/')}
7879
>
79-
+ New conversation
80+
<PencilSquareIcon className="w-5 h-5" />
81+
New conversation
8082
</div>
8183

8284
{/* list of conversations */}
83-
{groupedConv.map((group) => (
84-
<div>
85+
{groupedConv.map((group, i) => (
86+
<div key={i}>
8587
{/* group name (by date) */}
8688
{group.title ? (
87-
<b className="block text-xs px-2 mb-2 mt-6">{group.title}</b>
89+
// we use btn class here to make sure that the padding/margin are aligned with the other items
90+
<b className="btn btn-ghost btn-xs bg-none btn-disabled block text-xs text-base-content text-start px-2 mb-0 mt-6 font-bold">
91+
{group.title}
92+
</b>
8893
) : (
8994
<div className="h-2" />
9095
)}

0 commit comments

Comments
 (0)