Improve canvas layers, heading removal and component previews in 1.5.3

This commit is contained in:
2026-11-28 16:15:19 +08:00
parent 93b58b87b0
commit cb317bbeb0
31 changed files with 322 additions and 90 deletions
+2 -1
View File
@@ -197,6 +197,7 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
<dialog class="media-picker canvas-properties" data-canvas-properties aria-labelledby="canvas-properties-heading">
<div class="admin-heading compact"><h2 id="canvas-properties-heading" data-property-heading>编辑属性</h2></div>
<form class="admin-form" method="dialog">
<label data-property-row="id">元素 ID<input name="id" maxlength="80" autocomplete="off"><small>留空恢复默认。网页可通过 #ID 跳转到此处。</small></label>
<label data-property-row="label">文案<input name="label"></label>
<label data-property-row="note">副标题<input name="note" maxlength="200"></label>
<label data-property-row="url">地址<input name="url" maxlength="1000"></label>
@@ -224,7 +225,7 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
<dialog class="media-picker canvas-module-settings" data-module-dialog aria-labelledby="module-settings-title">
<div class="admin-heading compact"><h2 id="module-settings-title">模块设置</h2></div>
<form class="admin-form" method="dialog">
<label>模块标题<textarea name="module_title" rows="2" maxlength="100" required></textarea></label>
<label>模块标题<textarea name="module_title" rows="2" maxlength="100"></textarea></label>
<label>模块简介<textarea name="module_lead" rows="2" maxlength="500"></textarea></label>
<?= View::fragment('studio-feed-fields', ['categories' => $categories, 'feed' => [], 'allowOff' => false]) ?>
<p class="feedback error" role="alert" data-module-error hidden></p>