feat: resolve all 22 items in Features and Bugs.txt and complete UI polish

This commit is contained in:
Schwitzz
2026-10-30 10:57:13 -05:00
parent 7214cee8cb
commit 4add429469
42 changed files with 6360 additions and 1805 deletions
+12
View File
@@ -166,3 +166,15 @@ export function applyFontSettings(s: Partial<FontSettings>): void {
if (s.measure != null) root.style.setProperty("--ps-font-measure", `${s.measure}px`);
if (s.family != null && s.family !== "") root.style.setProperty("--ps-font-body", s.family);
}
/**
* Apply UI density ("compact" | "comfortable") by setting `data-density` on
* `:root` and updating `--ps-density` and `--ps-topbar-h`.
*/
export function applyDensity(density: "compact" | "comfortable"): void {
const root = typeof document !== "undefined" ? document.documentElement : undefined;
if (!root) return;
root.dataset.density = density;
root.style.setProperty("--ps-density", density === "compact" ? "8px" : "14px");
root.style.setProperty("--ps-topbar-h", density === "compact" ? "40px" : "48px");
}