docs(views): explain min-h-[60vh] mobile fallback in agent overview pane (#2061)

The 60vh value is the magic number that keeps the tab content area
usably tall when the parent stacks inspector + overview on mobile and
delegates scroll to the page. Add a short note next to the className
so future maintainers know what the constraint is for and why `md:`
overrides it.
This commit is contained in:
Bohan Jiang
2026-05-06 18:06:31 +08:00
committed by GitHub
parent 38f777d0ba
commit 4a749f103b

View File

@@ -117,6 +117,10 @@ export function AgentOverviewPane({
};
return (
// On mobile the parent stacks the inspector and overview and scrolls the
// page itself, so this pane has no inherited height. `min-h-[60vh]` keeps
// the tab content area usably tall when content is short; `md:` restores
// the grid-driven full-height behavior on tablet and up.
<div className="flex min-h-[60vh] flex-col overflow-hidden rounded-lg border bg-background md:h-full md:min-h-0">
<div className="flex shrink-0 items-center gap-0 overflow-x-auto border-b px-2 md:px-4">
{detailTabs.map((tab) => (