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