Skip to content

Commit 82928b6

Browse files
author
Codex
committed
feat: make preview panel horizontally resizable
1 parent e4e05f0 commit 82928b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/web/static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ main { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }
5151
/* Layout: editor + preview */
5252
.editor-layout { display: flex; gap: 16px; align-items: flex-start; }
5353
.editor-sections { flex: 1; min-width: 0; }
54-
.preview-panel { width: 520px; flex-shrink: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; position: sticky; top: 16px; max-height: 85vh; overflow-y: auto; }
54+
.preview-panel { width: 520px; min-width: 280px; max-width: 70vw; flex-shrink: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; position: sticky; top: 16px; max-height: 85vh; overflow-y: auto; resize: horizontal; overflow-x: hidden; }
5555
.preview-panel h3 { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
5656
.preview-panel pre, .preview-raw { white-space: pre-wrap; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; line-height: 1.6; color: #333; }
5757
.preview-body { font-size: 13px; line-height: 1.6; color: #1a1a1a; }

0 commit comments

Comments
 (0)