feat: add table border width setting

This commit is contained in:
Erzbir
2026-06-15 22:32:47 +08:00
parent 6383d5357b
commit 29a36423c4
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -115,6 +115,13 @@ spec:
- label: "none"
value: "none"
- $formkit: text
label: 表格边线宽度
name: table_border_width
value:
placeholder: "calc(var(--size-theme-font) * 0.0625)"
help: 控制表格边线宽度, 留空使用主题默认值
- $formkit: checkbox
label: 使用系统字体
name: system_font_enable
+5
View File
@@ -168,6 +168,11 @@
--style-theme-border: [(${theme.config.style.border_style})];
}
</style>
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.table_border_width)}" th:inline="css">
:root {
--width-theme-table-border: [(${theme.config.style.table_border_width})];
}
</style>
<script no-pjax>
window.TerminalTheme?.applyCustomCss?.();
</script>