a block's spacing sits with its title; page settings need the page selected
Spacing had a link in the chrome painted onto the page and lost its door with the rest of it. It belongs beside the heading: both are properties of the selected block, and one of the two is not worth a place of its own to go to. The page's name and address now show only when the page row itself is selected. With a band or a block open they sat above an editor about something else and read as belonging to it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+9
-2
@@ -40,9 +40,16 @@ export const EditorPanel = () => {
|
||||
Above the device toggle, because the toggle scopes what is under it to one width and none of these
|
||||
three have widths.
|
||||
*/
|
||||
const { section, item } = useNav();
|
||||
const { section, item, part } = useNav();
|
||||
const { pages } = usePages();
|
||||
const page = section === 'pages' ? pageFromParam(pages, item) : null;
|
||||
/*
|
||||
Only when the PAGE row itself is selected.
|
||||
|
||||
A band or a block selected means the editor below is about that, and the page's own name and
|
||||
address sitting above it read as belonging to whatever is open. They are reached by pressing the
|
||||
page again, which is what the nav already implies.
|
||||
*/
|
||||
const page = section === 'pages' && !part ? pageFromParam(pages, item) : null;
|
||||
|
||||
return (
|
||||
<div className="flex size-full flex-col overflow-hidden">
|
||||
|
||||
Reference in New Issue
Block a user