windows tuck 10px behind the taskbar top instead of stopping dead flush

This commit is contained in:
Martin Dvořák 2026-09-24 14:43:02 +00:00
commit 626a657a67
2 changed files with 9 additions and 8 deletions

View file

@ -9,11 +9,11 @@ import { useTheme } from "./useTheme";
import { useDesktopIcons } from "./useDesktopIcons";
import { WALLPAPER, friends } from "../data";
// The panel is anchored at `bottom: 10px` and is 44px tall, so the usable
// desktop area ends 54px above the viewport bottom. Windows are clamped to that
// line, so a window dragged down lands flush with the top of the taskbar with
// nothing hidden behind it.
const TASKBAR_HEIGHT = 54;
// The panel is anchored at `bottom: 10px` and is 44px tall, so its top edge is
// 54px above the viewport bottom. Windows clamp at 44px from the bottom, i.e.
// they tuck 10px behind the panel's top edge - a slight overlap that reads
// better than stopping dead flush.
const TASKBAR_HEIGHT = 44;
const LEFT_APPS = APPS.filter((a) => a.id !== "services" && a.id !== "friends");