vomebook commited on
Commit
22bebca
·
verified ·
1 Parent(s): 5e9c59e

ui: place preview fullscreen control before close

Browse files

Swap only the fullscreen and close button order in preview toolbars, including the BHA proofreading toolbar. No backend, data, index, configuration or CSS changes.

Files changed (1) hide show
  1. static/app.js +1 -1
static/app.js CHANGED
@@ -1206,8 +1206,8 @@ async function openPreview(docId, keyword, options = {}) {
1206
  <div class="preview-path">${escapeHTML(data.source)} / ${escapeHTML(data.path)}</div>
1207
  </div>
1208
  <div class="preview-tools">
1209
- <button type="button" class="icon-btn-sm" data-action="close-preview" aria-label="关闭预览">×</button>
1210
  ${previewFullscreenButtonHTML()}
 
1211
  <button type="button" class="icon-btn-sm preview-theme-btn" data-action="toggle-preview-theme" aria-label="${STATE.isDark ? "切换到白天模式" : "切换到黑夜模式"}" title="${STATE.isDark ? "白天模式" : "黑夜模式"}">${themeIcon(STATE.isDark)}</button>
1212
  </div>
1213
  </div>
 
1206
  <div class="preview-path">${escapeHTML(data.source)} / ${escapeHTML(data.path)}</div>
1207
  </div>
1208
  <div class="preview-tools">
 
1209
  ${previewFullscreenButtonHTML()}
1210
+ <button type="button" class="icon-btn-sm" data-action="close-preview" aria-label="关闭预览">×</button>
1211
  <button type="button" class="icon-btn-sm preview-theme-btn" data-action="toggle-preview-theme" aria-label="${STATE.isDark ? "切换到白天模式" : "切换到黑夜模式"}" title="${STATE.isDark ? "白天模式" : "黑夜模式"}">${themeIcon(STATE.isDark)}</button>
1212
  </div>
1213
  </div>