forked from unom/punktfunk
The Host page was crowded (identity, codecs, ports, GPU, displays, compositors) and the virtual-display config surface is large enough to warrant its own home. - New **Virtual displays** nav section: `/displays` route + `sections/Displays` (moved DisplayCard out of `sections/Host`), a `MonitorPlay` sidebar entry after Host, and `nav_displays` i18n. Removed the displays card from the Host page/view. - On its own page the card splits into two: **Configuration** (presets + custom axes) and **Live displays** (the live list + arrangement table) — room to breathe. - Presets now render in a max-2-column grid (`sm:grid-cols-2`) with larger padding, a bigger section heading + preset titles (text-base semibold), roomier spacing, and bottom-aligned "what it sets" badges so the cards line up. web tsc + vite build + biome-lint green; deployed + verified on the Mutter box (.21). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import type { FC } from "react";
|
|
import { useGetHostInfo, useListCompositors } from "@/api/gen/host/host";
|
|
import { useLocale } from "@/lib/i18n";
|
|
import { GpuSection } from "./GpuCard";
|
|
import { HostView } from "./view";
|
|
|
|
export const SectionHost: FC = () => {
|
|
useLocale();
|
|
const host = useGetHostInfo();
|
|
const compositors = useListCompositors();
|
|
|
|
return <HostView host={host} compositors={compositors} gpu={<GpuSection />} />;
|
|
};
|