From f1482bf338a39ff5398b532449196e46dc166224 Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 25 Nov 2026 19:26:31 +0100 Subject: [PATCH] Space the stripe and set the island flush against it - Give the stripe buttons IntelliJ's spacing and room above the first one - Meet the island beside the stripe flush with square corners --- studio/src/renderer/src/studio/MapStudio.tsx | 5 ++++- studio/src/renderer/src/studio/ViewList.tsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/studio/src/renderer/src/studio/MapStudio.tsx b/studio/src/renderer/src/studio/MapStudio.tsx index e5429d210..6c6a0e3f3 100644 --- a/studio/src/renderer/src/studio/MapStudio.tsx +++ b/studio/src/renderer/src/studio/MapStudio.tsx @@ -5,6 +5,7 @@ import type { Share } from '../map/census' import type { MapController, MapStatus, MapToggles } from '../map/MapController' import type { Highlight } from '../map/tileStyle' import { Waves } from 'lucide-react' +import { cn } from '@/lib/utils' import { HelpDialog } from './HelpDialog' import { HoverCard } from './HoverCard' import { Glyph } from './Glyph' @@ -30,6 +31,8 @@ import { usePickInspection } from './usePickInspection' import { ViewList } from './ViewList' const KEYBOARD_ZOOM_FACTOR = 2 ** 0.25 +/** The island beside the stripe meets it flush with square corners, as IntelliJ's tool windows meet theirs; the row's gap is 1.5. */ +const ISLAND_FLUSH_WITH_STRIPE = '[&>nav]:-mr-1.5 [&>nav+div:not(:empty)]:rounded-l-none [&>nav+div:empty+*]:rounded-l-none' const ENTITY_POLL_MILLIS = 2000 const NOTICE_MILLIS = 4000 /** The views whose spots a noise picks, which the pick inspector explains. */ @@ -235,7 +238,7 @@ export function MapStudio({ client, world, theme, onOpenPack, onDisconnect }: Ma
setHelpOpen(true)} onSettings={() => setSettingsOpen(true)} /> -
+
{openingPack !== null && (
diff --git a/studio/src/renderer/src/studio/ViewList.tsx b/studio/src/renderer/src/studio/ViewList.tsx index 206dc10b2..96a2d1961 100644 --- a/studio/src/renderer/src/studio/ViewList.tsx +++ b/studio/src/renderer/src/studio/ViewList.tsx @@ -91,7 +91,7 @@ export function ViewList({ views, current, onSelect, slotRef }: ViewListProps): const groups = groupsOf(views) return ( <> -