Repository navigation
Loupe: the filter pill sits as far from the left edge as from the top - #1661
Merged
Merged
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1645.
The "Filtered: …" pill that e5848aa added to the loupe was placed at
canvas.min + (12, 3)infilter_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_edgesdraws 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 herecargo clippy -p lightcraft-ui-egui --all-targets -- -D warnings,cargo fmt --all -- --check