fix: line numbers — uniform font-size 13.5px + updateLineNumbers apres loadFile
This commit is contained in:
@@ -69,7 +69,7 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig
|
||||
/* Line numbers */
|
||||
.ln-wrap { position: relative; display: flex; flex: 1; overflow: hidden; }
|
||||
.ln-gutter { width: 44px; min-width: 44px; background: var(--bg2); border-right: 1px solid var(--border); overflow: hidden; user-select: none; padding-top: 24px; position: relative; z-index: 2; }
|
||||
.ln-gutter-inner { padding: 0 8px 0 12px; text-align: right; font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: var(--text3); }
|
||||
.ln-gutter-inner { padding: 0 8px 0 12px; text-align: right; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--text3); }
|
||||
.ln-editor { flex: 1; overflow-y: auto; position: relative; }
|
||||
.editor-wrap { flex: 1; overflow-y: auto; position: relative; padding: 24px 16px 24px 12px; }
|
||||
|
||||
@@ -77,7 +77,6 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig
|
||||
.qi-btn { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg2); color: var(--text3); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 100ms; opacity: 0; z-index: 3; }
|
||||
.ln-gutter:hover .qi-btn, .qi-btn:hover { opacity: 1; }
|
||||
.qi-btn:hover { color: var(--text); border-color: var(--accent); background: var(--accent-bg); }
|
||||
.ln-gutter { width: 44px; min-width: 44px; background: var(--bg2); border-right: 1px solid var(--border); overflow: hidden; user-select: none; padding-top: 24px; position: relative; z-index: 2; }
|
||||
|
||||
/* Preview pane */
|
||||
.preview-pane { flex: 0.67; overflow-y: auto; padding: 24px 24px 80px; background: var(--bg2); border-left: 1px solid var(--border); display: none; }
|
||||
@@ -641,6 +640,7 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig
|
||||
// Demo mode
|
||||
ta.value = '# Demo Document\n\nType **/** for commands. Select text for formatting.\n\n## Features\n\n- Slash commands: type / at start of line\n- Bubble menu: select text\n- AI actions: use the sparkle button or slash /ai\n- Preview: click the eye button\n';
|
||||
autoHeight();
|
||||
updateLineNumbers();
|
||||
statFile.textContent = 'Demo mode';
|
||||
document.title = 'ObsiGate Forge — Demo';
|
||||
originalContent = ta.value;
|
||||
@@ -663,6 +663,7 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig
|
||||
}
|
||||
ta.value = raw;
|
||||
autoHeight();
|
||||
updateLineNumbers();
|
||||
originalContent = ta.value;
|
||||
// Extract title from first # heading or filename
|
||||
var title = filePath.split('/').pop().replace(/\.md$/, '');
|
||||
|
||||
Reference in New Issue
Block a user