the device toggle is three labelled tabs

Icons alone told three things apart by proportion at 12 pixels. Full width, one
of three filled, and the word from DEVICES.

The `size` prop is gone with the bar that needed the small one, and so is the
second copy inside Spacing — the panel header scopes the whole editor now.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-01 07:41:09 +01:00
co-authored by Claude Opus 5
parent e45e3d84a8
commit d218d3c7a8
3 changed files with 24 additions and 25 deletions
-5
View File
@@ -8,7 +8,6 @@ import { useAutosave } from '../useAutosave';
import { usePreviewable, useViewMode } from '../ViewMode';
import { applySpacing, paintMeasure, type SpacingDraft } from '../canvas';
import { SitePreview, useDevPort } from '../SitePreview';
import { DeviceToggle } from '../DeviceToggle';
import { useEditorSlot } from '../useEditorSlot';
import { type LayoutBand } from './PaddingTab';
import { SpacingTab } from './SpacingTab';
@@ -348,10 +347,6 @@ export const LayoutPanel = () => {
<AccordionItem value="padding" className="rounded-lg border border-border px-4">
<AccordionTrigger className="text-xs">Spacing</AccordionTrigger>
<AccordionContent>
{/* The width these settings are for. Reads `?device=`, so it moves the preview too. */}
<div className="mb-3">
<DeviceToggle size="section" />
</div>
{/* Three bands. PaddingTab is still the per-SECTION control, for the pages. */}
<SpacingTab
spacing={draft.spacing}