Skip to content

Loupe: the filter pill sits as far from the left edge as from the top - #1661

Merged
echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/filter-label-padding
Oct 14, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
marcoarnulfo:fix/filter-label-padding

Conversation

@marcoarnulfo

Copy link
Copy Markdown
Contributor

Fixes #1645.

The "Filtered: …" pill that e5848aa added to the loupe was placed at canvas.min + (12, 3) in filter_pill, so it sat 12 pt from the canvas' left edge but only 3 pt from its top, which is the off-corner look in the screenshot. It now uses one inset for both edges, and the width cap uses the same inset on the right. I kept the 3 pt top inset, as the issue suggests, so the pill still stays out of the photo's way; happy to switch to 12 pt on both sides if you prefer more air around it.

Validation:

  • panels::detail::filter_pill_tests::the_filter_pill_is_inset_equally_from_both_edges draws the pill on a canvas that does not start at the origin and compares its rect to the canvas corner: fails on main (left inset 12.0, top 3.0), passes here
  • cargo clippy -p lightcraft-ui-egui --all-targets -- -D warnings, cargo fmt --all -- --check
  • (macOS, Apple silicon)

@echelon

echelon commented Oct 14, 2026

Copy link
Copy Markdown
Member

Thank you @marcoarnulfo! This landed on main in integration batch 35 (#1682).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

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.

Search filter label has inconsistent padding

2 participants