Merge pull request 'dev' (#6) from dev into main

Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
2026-03-23 19:21:24 +00:00
2 changed files with 22 additions and 9 deletions

View File

@@ -37,18 +37,29 @@
html, body { html, body {
width: 440px; width: 440px;
min-height: 200px; min-height: 200px;
max-height: 600px;
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
font-family: var(--font); font-family: var(--font);
font-size: 13px; font-size: 13px;
line-height: 1.5; line-height: 1.5;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden;
} }
/* ── Views ── */ /* ── Views ── */
.view { display: flex; flex-direction: column; } .view { display: flex; flex-direction: column; }
.view.hidden { display: none !important; } .view.hidden { display: none !important; }
/* ── Main view fills viewport, footer always visible ── */
#view-main {
height: 600px;
max-height: 600px;
display: flex;
flex-direction: column;
overflow: hidden;
}
/* ── Loading ── */ /* ── Loading ── */
#view-loading { #view-loading {
align-items: center; align-items: center;
@@ -170,13 +181,14 @@ header {
.tab.active { color: var(--accent); border-bottom-color: var(--accent); } .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
/* ── Tab panels ── */ /* ── Tab panels ── */
.tab-panel { flex: 1; } .tab-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tab-panel.hidden { display: none; } .tab-panel.hidden { display: none !important; }
#md-editor { #md-editor {
display: block; display: block;
width: 100%; width: 100%;
height: 260px; flex: 1;
min-height: 0;
background: var(--bg); background: var(--bg);
border: none; border: none;
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
@@ -191,7 +203,8 @@ header {
#md-editor::placeholder { color: var(--text-muted); } #md-editor::placeholder { color: var(--text-muted); }
.preview-body { .preview-body {
height: 260px; flex: 1;
min-height: 0;
overflow-y: auto; overflow-y: auto;
padding: 14px 16px; padding: 14px 16px;
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);

View File

@@ -57,14 +57,14 @@
</div> </div>
<!-- edit panel --> <!-- edit panel -->
<div id="tab-edit" class="tab-panel flex flex-col h-96 border-b border-gray-100 dark:border-gray-800"> <div id="tab-edit" class="tab-panel flex flex-col flex-1 min-h-0">
<textarea rows="14" id="md-editor" spellcheck="false" placeholder="Markdown content…" class="flex-1 w-full p-3 text-sm resize-none focus:outline-none focus:ring-1 focus:ring-emerald-100 dark:focus:ring-emerald-900/30 bg-transparent text-inherit"></textarea> <textarea id="md-editor" spellcheck="false" placeholder="Markdown content…"></textarea>
<div id="char-counter" class="char-counter text-right px-3 py-1 text-[10px] text-gray-400">0 chars</div> <div id="char-counter" class="char-counter">0 chars</div>
</div> </div>
<!-- preview panel --> <!-- preview panel -->
<div id="tab-preview" class="tab-panel hidden h-64 overflow-y-auto p-3 border-b border-gray-100 dark:border-gray-800"> <div id="tab-preview" class="tab-panel hidden flex flex-col flex-1 min-h-0">
<div id="md-preview" class="preview-body prose prose-sm dark:prose-invert max-w-none"></div> <div id="md-preview" class="preview-body"></div>
</div> </div>
<!-- images section --> <!-- images section -->