From: Alex Wu Date: Tue, 5 Aug 2025 11:56:44 +0000 (+0800) Subject: webui: fix markdown table (#15081) X-Git-Tag: upstream/0.0.6164~73 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=22f060c9c4b5ef49a83a20eda25fcb792419580b;p=pkg%2Fggml%2Fsources%2Fllama.cpp webui: fix markdown table (#15081) * webui: fix markdown table * webui: fix table display with themes --- diff --git a/tools/server/public/index.html.gz b/tools/server/public/index.html.gz index 53b71079..4f391e15 100644 Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ diff --git a/tools/server/webui/src/index.scss b/tools/server/webui/src/index.scss index 362db6e1..879cd258 100644 --- a/tools/server/webui/src/index.scss +++ b/tools/server/webui/src/index.scss @@ -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 {