feat: add table border width setting
This commit is contained in:
@@ -115,6 +115,13 @@ spec:
|
|||||||
- label: "none"
|
- label: "none"
|
||||||
value: "none"
|
value: "none"
|
||||||
|
|
||||||
|
- $formkit: text
|
||||||
|
label: 表格边线宽度
|
||||||
|
name: table_border_width
|
||||||
|
value:
|
||||||
|
placeholder: "calc(var(--size-theme-font) * 0.0625)"
|
||||||
|
help: 控制表格边线宽度, 留空使用主题默认值
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -168,6 +168,11 @@
|
|||||||
--style-theme-border: [(${theme.config.style.border_style})];
|
--style-theme-border: [(${theme.config.style.border_style})];
|
||||||
}
|
}
|
||||||
</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>
|
<script no-pjax>
|
||||||
window.TerminalTheme?.applyCustomCss?.();
|
window.TerminalTheme?.applyCustomCss?.();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user