Skip to content

Tighten Skim's ⋯ and keep it inside its section, quicken the depth pages, and fade Skim once a gap is open - #6618

Merged
max-sixty merged 5 commits into
mainfrom
skim-size-hover
Nov 20, 2026
Merged

max-sixty merged 5 commits into
mainfrom
skim-size-hover

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Tightens what the Skim control draws of its own. At Skim each folded run of blocks shows a ⋯ the reader presses to unfold it.

  • ⋯ spacing. Each ⋯ takes a 16px row that its 28px press overhangs, with negative margins into the gaps around it. A section-ending ⋯ now stands 32px above the next heading, against Read's 48px between sections; the gist to that heading is 57px where it was 93px. Its dots line up with the text's start edge.
  • ⋯ inside its section. A ⋯ now stands after the blocks it folds, in the box its run starts in. Before them, the folded blocks (zero-height boxes margins don't collapse through) ended the section 8px above the ⋯'s row, so a comment's aim or a walk's ring on the section cut through the ⋯.
  • Depth pages. The pages under the buttons and the frame round the standing depth arrive as one, a 4px drop and fade over the disclosure motion (120 ms). The pages grew from 60% of their height over 160 ms, and the frame faded in on its own. They still leave at once, 200 ms after the pointer, as Leaf's previews do.
  • Faded Skim. Pressing a ⋯ shows more than Skim, so Skim's border fades; pressing Skim folds the opened gaps again, keeping the reader's place. The fade is a new variant of the word face, data-lf-partial (a selection the page shows only in part), named in control-faces.js and drawn in controls.css, since a surface may not restyle a press itself.

What to weigh: the section-ending pull assumes the page leaves at least about 22px before the next block, as a heading's room does; in a padded box ending in a ⋯ the ⋯ overhangs the padding instead. Space on the checked Skim fires no click, so the keyboard folds again by an arrow away and back.

Max asked for each change on the Leaf page; a fresh visual review of the captures led to the border-only fade and the dot alignment. Tests: test_dial.py covers the ⋯ inside its section, the fade and the fold again, in Chromium and Firefox; check:browser passes.

This was written by Claude Code on behalf of max-sixty

…45px

Max: "these gaps are very big, which cuts the space saving we get from
skim ... Skim shouldn't tighten the UI, but its own UI should be tight",
keeping the ⋯ markers as they are.

Each ⋯ took a 28px row, its press's height, and kept its own margin below
it, so on the incident report a gap's ⋯ added 45px to Read's spacing between
the blocks around it: from a gist to the next section's heading was 93px at
Skim where Read's gap is 48px. The ⋯ now takes a 16px row that its press
overhangs and stands into the margins of the blocks around it, so the same
span is 65px. The page's own spacing, such as a heading's room above it,
stays as the page set it.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
…kim once a gap is open

A ⋯ now stands after the blocks it folds rather than before them. Before, the
folded blocks after it, zero-height boxes that margins do not collapse through,
ended the section 8px above the ⋯'s row, so a comment's aim or a walk's ring on
the section cut through the ⋯ (Max's report). As the section's last box, its
end margin escapes into the gap after the section: -16px there, so a
section-ending ⋯ stands 32px above the next heading where it stood 40px, against
Read's 48px. Between kept blocks it keeps -8px. A gap that spans a section
boundary keeps its ⋯ in the box it starts in.

The depth pages and their frame arrive as one: a 4px drop and a fade over the
disclosure motion (120 ms), on the panel. They grew from 60% of their height
over 160 ms, and the frame faded in separately, standing round a page still
growing into it. The leave stays Leaf's: gone at once 200 ms after the pointer
leaves.

Pressing a ⋯ at Skim marks the dial (data-lf-dial-unfolded), and Skim's
selection fades to say the page shows more than Skim. Pressing Skim then folds
the opened gaps again, only those, keeping the reader's place; pointing at it
fades what that would fold. Space on a checked radio fires no click, so the
keyboard route is an arrow away and back.

test_dial.py: the ⋯ is inside its section's box, Skim's border changes after
an unfold and returns when Skim is pressed, which folds the gap again; the
sheet heights are read once the entry ends.
… text's edge

A fresh visual review found the faded Skim read as disabled: its words fell to
4.0:1 against Read's 5.9:1 in light, 4.3:1 against 7.5:1 in dark. Only the
border steps back now; the words keep the accent.

The ⋯ glyph stood 8px in from the text's start edge, inside its 28px press. The
marker now starts 8px before the column, so the dots line up with the text and
the press hangs out past it, as a heading's link does.
@max-sixty max-sixty changed the title Set Skim's ⋯ markers into the gaps around them, so each costs 17px rather than 45px Tighten Skim's ⋯ and keep it inside its section, quicken the depth pages, and fade Skim once a gap is open Nov 20, 2026
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
test_a_press_wears_its_role_s_face_alone refused the dial's own rule restyling its
checked depth. The state now rides Skim's button as data-lf-partial, a variant the
word role names in control-faces.js and controls.css draws, so any word toggle whose
selection the page shows only in part can wear it. The look is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants