]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : (webui) fix a very small misalignment (#13387)
authorXuan-Son Nguyen <redacted>
Thu, 8 May 2025 16:51:45 +0000 (18:51 +0200)
committerGitHub <redacted>
Thu, 8 May 2025 16:51:45 +0000 (18:51 +0200)
* server : (webui) fix a very small misalignment

* restore font-bold

tools/server/public/index.html.gz
tools/server/webui/src/components/Sidebar.tsx

index 3153b615921d8aa92b7c7eba1a06769f08f28f6f..260fdcfecaee831ff26866b3466ee2fc8fdbbd4c 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index 1a6c8a32754de2e472818abe0e568f27b0365407..8e79e00b8dd4fcc82c187d8f028478beeafe9587 100644 (file)
@@ -7,6 +7,7 @@ import {
   ArrowDownTrayIcon,
   EllipsisVerticalIcon,
   PencilIcon,
+  PencilSquareIcon,
   TrashIcon,
   XMarkIcon,
 } from '@heroicons/react/24/outline';
@@ -76,15 +77,19 @@ export default function Sidebar() {
             })}
             onClick={() => navigate('/')}
           >
-            + New conversation
+            <PencilSquareIcon className="w-5 h-5" />
+            New conversation
           </div>
 
           {/* list of conversations */}
-          {groupedConv.map((group) => (
-            <div>
+          {groupedConv.map((group, i) => (
+            <div key={i}>
               {/* group name (by date) */}
               {group.title ? (
-                <b className="block text-xs px-2 mb-2 mt-6">{group.title}</b>
+                // we use btn class here to make sure that the padding/margin are aligned with the other items
+                <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">
+                  {group.title}
+                </b>
               ) : (
                 <div className="h-2" />
               )}