windows stop 5px above the taskbar; apply the same gap to maximized windows
This commit is contained in:
parent
19838832d7
commit
12ff3e70e9
3 changed files with 12 additions and 11 deletions
|
|
@ -10,10 +10,9 @@ import { useDesktopIcons } from "./useDesktopIcons";
|
|||
import { WALLPAPER, friends } from "../data";
|
||||
|
||||
// The panel sits at `bottom: 10px` with a height of 44px, so its top edge is
|
||||
// 54px above the viewport bottom. Windows clamp 10px above that, so a dragged
|
||||
// window stops just above the taskbar with a small gap instead of touching or
|
||||
// overlapping it.
|
||||
const TASKBAR_HEIGHT = 64;
|
||||
// 54px above the viewport bottom. Windows clamp 5px above that (59), so a
|
||||
// dragged or maximized window stops just above the taskbar.
|
||||
const TASKBAR_HEIGHT = 59;
|
||||
|
||||
const LEFT_APPS = APPS.filter((a) => a.id !== "services" && a.id !== "friends");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue