diff --git a/admin_ui/index.html b/admin_ui/index.html index ce724d5..561bb17 100644 --- a/admin_ui/index.html +++ b/admin_ui/index.html @@ -112,6 +112,7 @@ color: #9ca3af; margin-left: auto; } + .preview { width: 45%; min-width: 320px; @@ -125,16 +126,75 @@ font-size: 0.85rem; color: #9ca3af; background: #020617; + display: flex; + align-items: center; + justify-content: space-between; + gap: 0.5rem; + } + .preview-title { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .preview-controls { + display: flex; + align-items: center; + gap: 0.25rem; + font-size: 0.8rem; + } + .device-btn { + padding: 0.15rem 0.5rem; + border-radius: 999px; + border: 1px solid #4b5563; + background: #020617; + color: #e5e7eb; + cursor: pointer; + font-size: 0.75rem; + } + .device-btn.active { + background: #4b5563; + color: #f9fafb; + } + .preview-open { + padding: 0.15rem 0.45rem; + border-radius: 999px; + border: 1px solid #4b5563; + text-decoration: none; + color: #e5e7eb; + font-size: 0.75rem; + } + + .preview-inner { + flex: 1; + display: flex; + justify-content: center; + align-items: stretch; + padding: 0.5rem; + box-sizing: border-box; + background: #000; + overflow: auto; } .preview iframe { - flex: 1; - width: 100%; border: none; + height: 100%; + max-height: 100%; background: #000; } + + /* Device width presets for iframe */ + .device-mobile #preview-frame { + width: 390px; /* typical phone */ + } + .device-tablet #preview-frame { + width: 820px; /* typical tablet */ + } + .device-desktop #preview-frame { + width: 1200px; /* typical desktop layout */ + max-width: 100%; + } -
+