diff --git a/CHANGELOG.md b/CHANGELOG.md index 91fbdbd..8203d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ The release notes on GitHub are taken from this file: the section whose heading is the version number. +## Unreleased + +- Web UI: square sponsor ads show in the sidebar at their own proportions (capped height); wide banners move to a slim strip at the top of the main area (not in the sidebar). The brand logo stays at its full size on short screens. + ## 2.5.7 - Web UI: the left sidebar now fits without scrolling, even at 1366×768: language and theme sit under the logo, Help sits beside Logout, and Ledger and Account moved into Settings as tabs. The ledger no longer shows device location (the API is unchanged). Old #v=racks and #v=ledger links open the Settings ledger tab. diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 68d5783..aafb1fe 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -114,9 +114,9 @@ nav.dash button[aria-current="page"] .ni{opacity:1} .foot{padding:4px 12px 10px;border-top:1px solid var(--side-line)} .footrow{display:flex;align-items:center;gap:4px} .footrow .linkbtn{flex:1;justify-content:center} -/* The sponsor slot of an unregistered installation: in the sidebar, above - the language and theme, one small banner at a time at the sidebar's - width (sponsor.js decides, and sets the height). */ +/* Sidebar sponsor: square-ish ads (ratio < 3) at the image's own + proportions; height is set by sponsor.js, capped. Wide banners go to + .sponsor-top above the page header instead. */ .sponsor{border-top:1px solid var(--side-line);padding:8px 12px 4px} .sponsor[hidden]{display:none} .sponsor .sp-h{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:0 0 3px} @@ -125,14 +125,20 @@ nav.dash button[aria-current="page"] .ni{opacity:1} .spc-strip{display:grid;border-radius:4px;overflow:hidden} .spc-cell{position:relative;overflow:hidden;background:var(--surface)} .spc-cell>a,.spc-cell>div{display:block;width:100%;height:100%} -.spc-cell img{width:100%;height:100%;object-fit:cover;display:block} +.spc-cell img{width:100%;height:100%;object-fit:contain;display:block} .spc-dots{display:flex;gap:6px;justify-content:center;padding:4px 0 5px} .spc-dot{width:6px;height:6px;padding:0;border-radius:50%;border:0;cursor:pointer;background:var(--line-2)} .spc-dot.on{background:var(--accent)} -@media print{.sponsor{display:none}} +/* Top strip: wide banners (ratio >= 3), slim, centred, max ~728x90. */ +.sponsor-top{display:flex;justify-content:center;padding:6px 16px;border-bottom:1px solid var(--line);background:var(--surface)} +.sponsor-top[hidden]{display:none} +.sponsor-top .spc{width:100%;max-width:728px} +.sponsor-top .spc-cell{background:transparent} +.sponsor-top .spc-dots{padding:3px 0 0} +@media print{.sponsor,.sponsor-top{display:none}} /* shorter screens: tighten the sidebar so the menu still fits without scrolling */ -@media (max-height:900px) and (min-width:821px){.brand{padding:8px 14px 6px}.brand .logo{max-height:52px}nav.dash button{padding:5px 12px;font-size:14px}nav.dash hr{margin:3px 8px}aside>.pick{padding:6px 12px}.foot{padding:2px 12px 6px}#logout,#help{padding:4px}.sponsor{padding:5px 12px 2px}} -@media (max-height:780px) and (min-width:821px){.brand .logo{max-height:40px}nav.dash{padding:4px 8px}nav.dash button{padding:3.5px 12px;font-size:13.5px}nav.dash hr{margin:2px 8px}.sponsor .sp-h{padding:0 0 1px}} +@media (max-height:900px) and (min-width:821px){.brand{padding:8px 14px 6px}nav.dash button{padding:5px 12px;font-size:14px}nav.dash hr{margin:3px 8px}aside>.pick{padding:6px 12px}.foot{padding:2px 12px 6px}#logout,#help{padding:4px}.sponsor{padding:5px 12px 2px}} +@media (max-height:780px) and (min-width:821px){nav.dash{padding:4px 8px}nav.dash button{padding:3.5px 12px;font-size:13.5px}nav.dash hr{margin:2px 8px}.sponsor .sp-h{padding:0 0 1px}} aside>.pick{display:grid;grid-template-columns:1fr auto;gap:6px;padding:8px 12px;border-bottom:1px solid var(--side-line)} #theme{display:flex;align-items:center;gap:6px;border:1px solid var(--line-2);border-radius:6px;padding:4px 10px;background:var(--surface);color:var(--ink);cursor:pointer;font-size:13px;white-space:nowrap} #theme i{width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:inset 0 0 0 2px var(--surface),0 0 0 1px var(--line-2)} diff --git a/internal/web/static/index.html b/internal/web/static/index.html index f6c06a2..6f030a2 100644 --- a/internal/web/static/index.html +++ b/internal/web/static/index.html @@ -42,6 +42,7 @@