From 5532e153cf1fc5b2cb8082872d88150cc35b502f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 15:07:10 +0000 Subject: [PATCH] The foot is shown and hidden by a button; a strip tile's name is over its picture #bFoot, pinned in the top bar's upper left as the menu's button is in its upper right, puts the foot of the scene view away and brings it back. The top ring's row stands between the two pinned buttons. A strip tile's caption is above its glyph. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_014hCELpcHAGzoWBsNzXgZw8 --- CLAUDE.md | 8 +++++ draw.html | 81 +++++++++++++++++++++++++++++++++++++++++++++--- tests/editor.mjs | 18 +++++++++++ 3 files changed, 102 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index f6df406..f4dbf72 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -484,6 +484,14 @@ compatibly. - A pinch selects nothing (the same day, A PINCH SELECTS NOTHING; "pinching should not select objects"): when the second finger lands the first finger's press is spent and the selection put back as it stood before it (`_pressSelBefore`). - A tile with no name, count or note has no tip ("Remove tool tip long press to change name"). +- The foot is shown and hidden by a button (1 Dec 2026, THE FOOT IS SHOWN AND HIDDEN in `draw.html`; Tom: "On the bottom + toolbar, show name above icon, not belo. Show button in upper left to show hide. Bottom toolbar, the same as games + header"): `#bFoot`, pinned in the top bar's upper left as the menu's button is in its upper right (a direct child of + `.topbar`, not one of the ring's), toggles `body.foot-off`, which hides the drawing's strip, a tool's strip, the + animation's bar and the AI's; gold while the foot is away, remembered (`tangent.footOffV1`), and a press on one of the + ring's buttons brings the foot back. The strip's mode is not touched. `window.__foot` (`set`, `off`) for the checks. + The top ring counts the room under the two pinned buttons as taken (`data-inset`), so its row stands between them. A + strip tile's name is over its picture (`.anim-tile .cap`, `order: -1`). - Comments explain *why*, at length. Keep the voice. ## Testing diff --git a/draw.html b/draw.html index 04bb264..ce54510 100644 --- a/draw.html +++ b/draw.html @@ -1918,6 +1918,18 @@ button#gearBtn.icon-btn { position: absolute; right: 8px; top: calc(50% + 1px); transform: translateY(-50%); z-index: 300; } /* (its chip is the bar's own: "The menu button itself should have the same style as the buttons on the toolbar") */ button#gearBtn.icon-btn:hover { transform: translateY(-50%); } + /* THE FOOT'S BUTTON, the menu's twin at the other end: pinned over the ring in the upper left, the bar's own + chip, gold while the foot is put away (so a page with no foot says where it went). */ + button#bFoot.icon-btn { position: absolute; left: 8px; top: calc(50% + 1px); transform: translateY(-50%); z-index: 300; } + button#bFoot.icon-btn:hover { transform: translateY(-50%); } + /* THE FOOT PUT AWAY: everything that stands at the foot of the scene view goes, and the canvas has the + room (the shape bar's margin is what kept it; resizeCanvas is run after). !important as chrome-off's + rule is, for the modes' more specific ones. */ + body.foot-off .shape-bar, + body.foot-off .shape-scroller, + body.foot-off .add-strip, + body.foot-off #animBar, + body.foot-off #aiBar { display: none !important; } /* The settings panel is the topmost layer in the app, above the edit bar, the shape bar and every popover. It was already above them by declaration order, but on nothing more than "no one else set a z-index" — one stacking context @@ -2921,10 +2933,11 @@ ANIMATION'S CONTROLS ARE A TABLE, NOT A BAR). */ body.morphing #shapeBar { display: flex; height: 0; min-height: 0; padding: 0; overflow: hidden; margin-bottom: 104px; } body.morphing.anim-bar #shapeBar { margin-bottom: calc(104px + var(--anim-h, 52px)); } - /* a tile of the animation's strips is a picture with its word under it */ + /* a tile of the strips is a picture with its word over it (1 Dec 2026, Tom: "On the bottom toolbar, show + name above icon, not belo": the word was under the picture, where a finger pressing the tile covers it) */ .add-strip > .controls > .anim-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--fg); } .add-strip > .controls > .anim-tile svg { width: 36px; height: 36px; } - .add-strip > .controls > .anim-tile .cap { font: 10px system-ui, sans-serif; color: var(--fg-muted); line-height: 1; } + .add-strip > .controls > .anim-tile .cap { order: -1; font: 10px system-ui, sans-serif; color: var(--fg-muted); line-height: 1; } .add-strip > .controls > .anim-tile.on .cap { color: var(--gold); } /* The edit footer, hidden by the canvas long-press. Edit mode is where the drawing wants the whole window — you are inside one shape, working close — and the footer is the @@ -3160,6 +3173,7 @@ /* Pinned to the RIGHT so it never spins out of reach: settings is the way out of any mess, and a ring has no fixed slots to keep it in. */ button#gearBtn.icon-btn { top: calc(50% + 4px); } + button#bFoot.icon-btn { top: calc(50% + 4px); } /* The lock gets the mirror treatment on the left, and for the same reason: the ring has no fixed slots, and "spin the bar to find the lock" is not a thing anyone would guess either. */ @@ -3843,6 +3857,14 @@ + +