feat: custom content width

This commit is contained in:
Erzbir
2025-11-20 14:57:23 +08:00
parent cf89e0cc35
commit e29982ea9f
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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
+1 -1
View File
@@ -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>