Address LaySite 1.4.5 editor and release review suggestions
This commit is contained in:
@@ -70,8 +70,8 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
|
||||
<div class="canvas-font-combo">
|
||||
<input id="canvas-font-size" type="number" data-canvas-font-size min="8" max="144" step="1" placeholder="px" disabled>
|
||||
<select data-font-preset aria-label="常用字号(px)" title="常用字号" disabled>
|
||||
<option value="" hidden>▾</option>
|
||||
<?php foreach ($fontSizes as $size): ?><option value="<?= $size ?>"><?= $size ?> px</option><?php endforeach ?>
|
||||
<option value="" hidden>—</option>
|
||||
<?php foreach ($fontSizes as $size): ?><option value="<?= $size ?>"><?= $size ?></option><?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -134,8 +134,8 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
|
||||
<fieldset class="admin-options canvas-spacing-fields"><legend id="spacing-<?= $prefix ?>-legend"><?= $label ?>(px)</legend>
|
||||
<div class="canvas-spacing-preset">
|
||||
<label id="spacing-preset-<?= $prefix ?>-label" for="spacing-preset-<?= $prefix ?>">四边预设</label>
|
||||
<input id="spacing-preset-<?= $prefix ?>" type="range" min="0" max="<?= count($spacingPresets) - 1 ?>" step="1"
|
||||
value="<?= array_search(16, $spacingPresets, true) ?>" data-spacing-preset="<?= $e(Database::json($spacingPresets)) ?>"
|
||||
<input id="spacing-preset-<?= $prefix ?>" type="range" min="-1" max="<?= count($spacingPresets) - 1 ?>" step="1"
|
||||
value="-1" data-spacing-preset="<?= $e(Database::json($spacingPresets)) ?>"
|
||||
list="spacing-preset-ticks" aria-labelledby="spacing-<?= $prefix ?>-legend spacing-preset-<?= $prefix ?>-label">
|
||||
<output for="spacing-preset-<?= $prefix ?>" data-spacing-readout aria-live="off">默认</output>
|
||||
<button class="button button-outline" type="button" data-spacing-reset>恢复默认</button>
|
||||
@@ -146,6 +146,7 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
|
||||
</fieldset>
|
||||
<?php endforeach ?>
|
||||
<datalist id="spacing-preset-ticks">
|
||||
<option value="-1"></option>
|
||||
<?php foreach (array_keys($spacingPresets) as $index): ?><option value="<?= $index ?>"></option><?php endforeach ?>
|
||||
</datalist>
|
||||
<div class="actions">
|
||||
@@ -281,8 +282,10 @@ $spacingPresets = [0, 4, 8, 12, 16, 24, 32, 48, 64, 96, 128];
|
||||
<label>发布状态<select name="status"><option value="draft" <?= $page['status'] === 'draft' ? 'selected' : '' ?>>草稿</option>
|
||||
<option value="published" <?= $page['status'] === 'published' ? 'selected' : '' ?>>已发布</option></select></label>
|
||||
<?php endif ?>
|
||||
<?php if (!$layout): ?>
|
||||
<?php if ($headEditor): ?>
|
||||
<?= View::fragment('head-settings', ['label' => '本页 Head', 'head' => $page['head_html']]) ?>
|
||||
<?php elseif (!$layout): ?>
|
||||
<p class="field-note">本页 Head 尚不可用。<?= $e(Database::MIGRATION_REQUIRED) ?></p>
|
||||
<?php endif ?>
|
||||
<div class="form-submit"><button class="button button-primary" type="submit"><?= View::fragment('studio-icon', ['icon' => 'save']) ?>保存页面</button></div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user