fix(editor): stable per-tab line restore and fold closing fences

This commit is contained in:
2026-11-06 10:12:18 +08:00
parent 9f12b91a14
commit a206ce8450
4 changed files with 38 additions and 19 deletions

View File

@@ -448,8 +448,8 @@ body.edit-finding #edit-findbar { display: flex; flex-direction: column; align-i
#edit-findbar .edit-replace-row { display: flex; align-items: center; gap: 6px; width: 100%; border-top: 1px solid rgba(0,0,0,.08); padding-top: 6px; }
#edit-findbar .edit-replace-row[hidden] { display: none; }
#edit-findbar #edit-replace-input { flex: 1 1 auto; width: auto; min-width: 0; }
#edit-findbar button.edit-replace-btn { width: auto; height: 28px; min-width: 64px; padding: 0 10px; border: 1px solid #e2e2e2; border-radius: 7px; background: #f2f2f2; color: #333; font-size: 12px; }
#edit-findbar button.edit-replace-btn:hover { background: #e7e7e7; color: #111; }
#edit-findbar button.edit-replace-btn { width: auto; height: 28px; min-width: 64px; padding: 0 10px; border: 1px solid #e6e6e6; border-radius: 7px; background: #ebebeb; color: #333; font-size: 12px; }
#edit-findbar button.edit-replace-btn:hover { background: #e0e0e0; color: #111; }
#cm-editor .cm-edit-find-hit { background: rgba(255, 213, 0, .38); }
/* Use the same thin scrollbar inside CodeMirror as the preview container. */