An open-source, self-hosted system for apps built with web technologies.
Start menu: its empty line is an AppLayout.Placeholder
zohayrslileh454c5d855722
diff --git a/source/client/view/structure/desktop/layers/shell/start-menu/empty.tsx b/source/client/view/structure/desktop/layers/shell/start-menu/empty.tsxindex 67efb2c..8447314 100644--- a/source/client/view/structure/desktop/layers/shell/start-menu/empty.tsx+++ b/source/client/view/structure/desktop/layers/shell/start-menu/empty.tsx@@ -1,12 +1,7 @@-import { Text, useAppearance, useScale } from "@phreshos/react-ui"+import { AppLayout, Text } from "@phreshos/react-ui"-/**- * A quiet line where a list has nothing to show, in the middle of the content: the content is a size- * container, and the line fills its height less the content's padding above and below.- */+/** A quiet line where a list has nothing to show, in the middle of the content. */export default function Empty({ children }: Readonly<{ children: string }>) {- const space = useScale(useAppearance().spacing)-- return <Text tone="secondary" size="small" className="grid place-items-center text-center" style={{ minHeight: `calc(100cqh - ${space.large * 2}px)` }}>{children}</Text>+ return <AppLayout.Placeholder><Text tone="secondary" size="small">{children}</Text></AppLayout.Placeholder>}diff --git a/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx b/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsxindex 6398a9f..7663a77 100644--- a/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx+++ b/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx@@ -131,8 +131,7 @@ export default function StartMenuPanel({ labelId, onChoose }: Readonly<{</AppLayout.Header>- {/* A size container, so a quiet line can stand in its middle. */}- <AppLayout.Content style={{ containerType: "size" }}>+ <AppLayout.Content>{show === "programs"? <Programs programs={programs} layout={layout} running={running}