Skip to content

Commit 22f060c

Browse files
authored
webui: fix markdown table (#15081)
* webui: fix markdown table * webui: fix table display with themes
1 parent ee3a9fc commit 22f060c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

tools/server/public/index.html.gz

122 Bytes
Binary file not shown.

tools/server/webui/src/index.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,24 @@ html {
3131
hr {
3232
@apply my-4 border-base-content/20 border-1;
3333
}
34-
/* TODO: fix markdown table */
34+
table {
35+
@apply w-full border-collapse text-sm font-sans my-4 text-base-content;
36+
}
37+
thead {
38+
@apply bg-base-200 text-base-content;
39+
}
40+
th {
41+
@apply border border-base-300 px-4 py-2 text-left font-semibold;
42+
}
43+
td {
44+
@apply border border-base-300 px-4 py-2 align-top;
45+
}
46+
tbody tr:nth-child(even) {
47+
@apply bg-base-100;
48+
}
49+
tbody tr:hover {
50+
@apply bg-base-200;
51+
}
3552
}
3653

3754
.btn-mini {

0 commit comments

Comments
 (0)