From 468802ac14370e2e9104cb883de86612acedc8be Mon Sep 17 00:00:00 2001 From: piexel Date: Wed, 11 Nov 2026 00:06:30 +0100 Subject: [PATCH] Float the studio's left island on top of the map, as v3e did --- studio/src/renderer/src/studio/MapStudio.tsx | 4 ++-- studio/src/renderer/src/studio/ViewList.tsx | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/studio/src/renderer/src/studio/MapStudio.tsx b/studio/src/renderer/src/studio/MapStudio.tsx index 821482f6c..ab7d220c1 100644 --- a/studio/src/renderer/src/studio/MapStudio.tsx +++ b/studio/src/renderer/src/studio/MapStudio.tsx @@ -228,8 +228,8 @@ export function MapStudio({ client, world, theme, onDisconnect }: MapStudioProps onDisconnect={onDisconnect} /> -
- +
+ {viewId === 'regions' && regions.length > 1 && ( diff --git a/studio/src/renderer/src/studio/ViewList.tsx b/studio/src/renderer/src/studio/ViewList.tsx index 1d3249083..228db390e 100644 --- a/studio/src/renderer/src/studio/ViewList.tsx +++ b/studio/src/renderer/src/studio/ViewList.tsx @@ -27,13 +27,19 @@ interface ViewListProps { onSelect(view: string): void /** Receives the element the shown view fills with its own lists, under the views. */ slotRef(element: HTMLElement | null): void + /** Whether the island lies on top of the map, as in v3e, instead of taking a column of its own. */ + floating: boolean } +const IN_COLUMN = 'bg-card' +const ON_THE_MAP = + 'absolute top-3.5 left-3.5 z-10 max-h-[calc(100%-1.75rem)] border border-overlay-border bg-card/90 shadow-lg backdrop-blur-md' + /** The left island: the views the server offers in their groups, then the shown view's own lists. */ -export function ViewList({ views, current, onSelect, slotRef }: ViewListProps): React.JSX.Element { +export function ViewList({ views, current, onSelect, slotRef, floating }: ViewListProps): React.JSX.Element { const groups = [...new Set(views.map((view) => view.groupLabel))] return ( -
+