]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
webui: fix markdown table (#15081)
authorAlex Wu <redacted>
Tue, 5 Aug 2025 11:56:44 +0000 (19:56 +0800)
committerGitHub <redacted>
Tue, 5 Aug 2025 11:56:44 +0000 (13:56 +0200)
* webui: fix markdown table

* webui: fix table display with themes

tools/server/public/index.html.gz
tools/server/webui/src/index.scss

index 53b71079c1e2a3ffebc5fbc70d6b30ca3de8f13c..4f391e15593302370b3ffe125c64ab3659236a5c 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index 362db6e17df5e6cf0c69b39934dc85759eafd1db..879cd25855497b47d171bd4f1897e781b6051a4c 100644 (file)
@@ -31,7 +31,24 @@ html {
   hr {
     @apply my-4 border-base-content/20 border-1;
   }
-  /* TODO: fix markdown table */
+  table {
+    @apply w-full border-collapse text-sm font-sans my-4 text-base-content;
+  }
+  thead {
+    @apply bg-base-200 text-base-content;
+  }
+  th {
+    @apply border border-base-300 px-4 py-2 text-left font-semibold;
+  }
+  td {
+    @apply border border-base-300 px-4 py-2 align-top;
+  }
+  tbody tr:nth-child(even) {
+    @apply bg-base-100;
+  }
+  tbody tr:hover {
+    @apply bg-base-200;
+  }
 }
 
 .btn-mini {