An open-source, self-hosted system for apps built with web technologies.
Align Start menu spacing and empty states
zohayrslileh0965bec633e3
diff --git a/scripts/contracts/panel.tsx b/scripts/contracts/panel.tsxindex ad997f0..d140adf 100644--- a/scripts/contracts/panel.tsx+++ b/scripts/contracts/panel.tsx@@ -50,7 +50,7 @@ const launcher = markup(<Launcher label="Example System" trigger="Open">{(_closeassert.equal(launcher.match(/data-surface-material=""/g)?.length, 3)assert.match(launcher, /grid-cols-2/)assert.match(launcher, /grid-template-rows:auto minmax\(0, 1fr\);min-height:0/)-assert.match(launcher, /grid-template-rows:minmax\(0, 1fr\) auto;gap:6px;padding:6px;padding-top:0/)+assert.match(launcher, /grid-template-rows:minmax\(0, 1fr\) auto;gap:8px;padding:8px;padding-top:0/)assert.match(launcher, /grid-cols-2" style="gap:inherit"/)assert.match(launcher, /<button>Programs<\/button>/)assert.match(launcher, /<p>Processes<\/p>/)diff --git a/source/client/view/structure/desktop/taskbar/launcher/programs/programs.tsx b/source/client/view/structure/desktop/taskbar/launcher/programs/programs.tsxindex c40d91c..19cdb11 100644--- a/source/client/view/structure/desktop/taskbar/launcher/programs/programs.tsx+++ b/source/client/view/structure/desktop/taskbar/launcher/programs/programs.tsx@@ -21,13 +21,13 @@ export default function Programs({ onChoose, terms }: ProgramsProps) {const programs = usePrograms().filter(program => matchesProgram(program, terms))- return <div role="group" aria-label="Programs" className="grid min-h-0 max-h-full gap-1 overflow-y-auto p-2">+ return <div role="group" aria-label="Programs" className="grid h-full min-h-0 grid-rows-[auto_minmax(0,1fr)] p-2"><h3 className="px-3 py-2 text-xs font-medium opacity-60">Programs · {programs.length}</h3>{programs.length- ? programs.map(record => <ProgramItem+ ? <div className="grid min-h-0 content-start gap-1 overflow-y-auto">{programs.map(record => <ProgramItemkey={record.identity}@@ -37,9 +37,9 @@ export default function Programs({ onChoose, terms }: ProgramsProps) {onChoose={onChoose}- />)+ />)}</div>- : <p className="px-3 py-8 text-center text-sm opacity-60">{terms.length ? "No matching Programs" : "No installed programs"}</p>}+ : <p className="m-0 grid min-h-32 place-items-center px-3 py-8 text-center text-sm opacity-50">{terms.length ? "No matching Programs" : "No installed programs"}</p>}</div>}diff --git a/source/client/view/structure/desktop/taskbar/launcher/start-menu-panel.tsx b/source/client/view/structure/desktop/taskbar/launcher/start-menu-panel.tsxindex 3efa296..73ba61c 100644--- a/source/client/view/structure/desktop/taskbar/launcher/start-menu-panel.tsx+++ b/source/client/view/structure/desktop/taskbar/launcher/start-menu-panel.tsx@@ -1,13 +1,11 @@import { type ReactNode } from "react"-import { Surface, useAppearance, useResolveTheme, useScale } from "@phreshos/react-ui"+import { Surface } from "@phreshos/react-ui"import logo from "@/assets/bundled/logo.png"/** Start menu shell: one outer material and two independently scrolling halves. */export default function StartMenuPanel({ labelId, name, version, left, right, footer }: Readonly<{ labelId: string, name: string, version: string, left: ReactNode, right: ReactNode, footer: ReactNode }>) {- const appearance = useAppearance()-- const spacing = useScale(useResolveTheme(appearance.spacing)).small+ const spacing = 8return <Surface style={{ display: "grid", gridTemplateRows: "auto minmax(0, 1fr)", minHeight: 0, height: "100%", maxHeight: "inherit", overflow: "hidden" }}>