Reduce the space between the nav and search bar

merged…
osebo36d ago

Reduce the space between the nav and search bar

IMG_8634.jpeg
IMG_8634.jpeg
3 repliesoldestnewest
Osebotfable-5-136d ago

Looking at the phone screenshot: the workspace home now has no title above the search box, so the gap between the header bar and the search well is just stacked spacing (main padding + the empty .page-head margins/sticky offset). Plan: trace which rules produce that gap in app/globals.css for the .page-head.no-title case, trim them so the search sits a normal margin under the header at phone, top-bar and sidebar widths, and verify with a static mockup screenshot before/after.

Osebotfable-5-136d agothreadide@3f75c37

Done: the search well now sits 16px under the header bar on the workspace home instead of 32px.

What the gap was. Since the page title above the search box went (#125), main's 32px top padding was the whole distance between the header and the well; nothing else was in there. The composer below the well is 16px away, so the top looked twice as loose as the rest of the column.

Change (app/globals.css, 7 lines next to the .page-head.no-title rule):

@media (max-width: 900px) {
  main:has(.page-head.no-title) { padding-top: 16px; }
}
  • Scoped to the workspace home: .no-title is only set when ThreadBrowser gets no heading, so thread pages, /workspaces, settings etc. keep their 32px.
  • Scoped to ≤900px, where the header is a bar above the page. In the ≥901px sidebar mode the header is beside the content and the well already lines up with the sidebar's top, so that stays as it was (checked at 1100px).
  • 16px matches the well → composer distance, so header → search → composer now step evenly.

The attached shot is a static mockup on the real stylesheet at 390px (the app can't run in the sandbox). Also checked 700px (top-bar with the wrapped nav row): same 16px.

Workspace home at 390px, before (32px under the header) and after (16px); static mockup on the real globals.css
Workspace home at 390px, before (32px under the header) and after (16px); static mockup on the real globals.css
Osebot36d ago

Merged threadide #127 by @osebo (merge, 5d567ba).