ui: 视图切换4按钮从输入区顶部工具条移到底部状态栏,减少对编辑区视觉干扰

这个提交包含在:
ubuntu
2026-10-14 16:35:55 +08:00
父节点 99e2cbc763
当前提交 e8d085e846
+16 -16
查看文件
@@ -266,22 +266,6 @@ body.no-side .main-inner{gap:0}
</select></span>
<button class="btn sm green" id="judgeBtn" style="display:none" onclick="submitCode()" title="提交判题:本地编译/运行比对或 HydroOJ">🧪 测评</button>
<button class="btn sm gray" id="tbBtn" onclick="insertTable()" title="插入 Markdown 表格">▦ 表格</button>
<!-- 视图切换:组1整体布局 上下/左右;组2预览形态 左右预览/上下预览 -->
<div class="viewseg" id="viewSeg" title="视图切换">
<button id="vLayoutCol" onclick="pickLayout('col')" title="整体上下:对话流在上、输入区在下">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="14" height="5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="1" y="8" width="14" height="5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
<button id="vLayoutRow" onclick="pickLayout('row')" title="整体左右:对话流在左、输入区在右">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="6.5" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="8.5" y="1" width="6.5" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
<span class="vsep"></span>
<button id="vPreviewSplit" onclick="pickPreview('split')" title="左右预览:编辑器与预览左右分(整体上下时预览在左)">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="6" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="9" y="1" width="6" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3" stroke-dasharray="2 1.6"/></svg>
</button>
<button id="vPreviewV" onclick="pickPreview('vstack')" title="上下预览:预览在上、编辑器在下">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="14" height="4.5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3" stroke-dasharray="2 1.6"/><rect x="1" y="7.5" width="14" height="5.5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
</div>
<span style="flex:1"></span>
</div>
@@ -300,6 +284,22 @@ body.no-side .main-inner{gap:0}
<button id="mode-strict" onclick="setMode('strict')">严格</button>
</div>
<span id="stMorph">输入形态:代码</span>
<!-- 视图切换(置于底部状态栏,不干扰编辑区):组1整体布局 上下/左右;组2预览形态 左右预览/上下预览 -->
<div class="viewseg" id="viewSeg" title="视图切换">
<button id="vLayoutCol" onclick="pickLayout('col')" title="整体上下:对话流在上、输入区在下">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="14" height="5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="1" y="8" width="14" height="5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
<button id="vLayoutRow" onclick="pickLayout('row')" title="整体左右:对话流在左、输入区在右">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="6.5" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="8.5" y="1" width="6.5" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
<span class="vsep"></span>
<button id="vPreviewSplit" onclick="pickPreview('split')" title="左右预览:编辑器与预览左右分(整体上下时预览在左)">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="6" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/><rect x="9" y="1" width="6" height="12" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3" stroke-dasharray="2 1.6"/></svg>
</button>
<button id="vPreviewV" onclick="pickPreview('vstack')" title="上下预览:预览在上、编辑器在下">
<svg width="16" height="14" viewBox="0 0 16 14"><rect x="1" y="1" width="14" height="4.5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3" stroke-dasharray="2 1.6"/><rect x="1" y="7.5" width="14" height="5.5" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.3"/></svg>
</button>
</div>
<span style="flex:1"></span>
<span class="hint" id="actionHint">Enter 发送并清空</span>
<button class="send-dot" id="sendDot" onclick="doAction()" onkeydown="if(event.key==='Enter'){event.preventDefault();}" title="发送到对话(Shift+Enter)">⤴</button>