feat: custom content width
This commit is contained in:
@@ -21,6 +21,12 @@ spec:
|
|||||||
- group: style
|
- group: style
|
||||||
label: 全局样式
|
label: 全局样式
|
||||||
formSchema:
|
formSchema:
|
||||||
|
- $formkit: text
|
||||||
|
label: 正文区域最大宽度
|
||||||
|
name: max_width
|
||||||
|
value:
|
||||||
|
help: 填写的值为 max-width 属性的值
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<aside class="sidebar-left">
|
<aside class="sidebar-left">
|
||||||
</aside>
|
</aside>
|
||||||
<main class="container" role="main">
|
<main class="container" role="main" th:attr="style=${#strings.isEmpty(theme.config.style.max_width) ? '' : 'max-width:' + theme.config.style.max_width}">
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
|
<th:block th:replace="~{modules/header :: header(isHome = true)}"/>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user