You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A code block's Copy button stays 32px on a compact code block #3829
A code block's Copy button is a 32px bordered box (--lf-code-copy-size: var(--lf-line)) whatever the block's text size. On a compact one-line block, such as a widget's code field set at 12.5px on a 19px line, the button covers nearly the whole height of the block.
The button stands in chrome rather than inside the block (browser/runtime/block-controls.js), so a page or widget can't size it for its own blocks. --lf-code-copy-size is set on :root, and setting it on the block's container doesn't reach the button.
Expected
The button scales with the block it serves, for example to the block's line height, keeping --aim-floor as the target's minimum. Or a block, or its container, can set the size for the buttons over it.
Fixed in #3830, which has merged. The Copy face now follows a code block's line height, and a block or container can set --lf-code-copy-size for a different face. Its press target still keeps the --aim-floor minimum. The browser regression reproduced the 32px face on a 19px line before the fix and passed afterward; the PR's checks passed on the merged head.
Activity
fix: size code Copy buttons to their blocks (#3830)
leaf-agent commentedon Oct 24, 2026
Fixed in #3830, which has merged. The Copy face now follows a code block's line height, and a block or container can set
--lf-code-copy-sizefor a different face. Its press target still keeps the--aim-floorminimum. The browser regression reproduced the 32px face on a 19px line before the fix and passed afterward; the PR's checks passed on the merged head.