mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
ui: the Files filter's clear button rejoins its input (#650)
The clear button sat detached from the filter field and 11px below it, and it
dragged the collapse-all button out of line with both.
One stale rule did all of that. `.search-clear { margin: 0.625rem }` is left
over from the Semantic-era filter, where the clear button was a sibling of the
input and needed the gap. It is now ActionInput's action, which joins the two
by dropping the input's right border -- so the margin reopened the seam the
component exists to close, pushed the button down by its own top margin, and,
because a flex line is as tall as its tallest item plus that item's margins,
stretched the wrapper to 62px around a 40px field. The collapse-all button
beside it was centred in that 62px, which is why it looked wrong too.
Removing the rule fixes all three: the button abuts the field and shares its
outline, like the filters on Videos and Archives, and the row is one height.
The class had exactly one user left, so the rule goes with it.
The test asserts the button is inside ActionInput's wrapper, and that no rule
reintroduces a margin on it -- jsdom applies no stylesheet, so the geometry
itself cannot be measured there. Confirmed it fails when the rule is put back.
This commit is contained in:
parent
eaa8b83e54
commit
7e63bbb3e2
3 changed files with 24 additions and 5 deletions
|
|
@ -361,10 +361,6 @@ textarea.otp {
|
|||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.search-clear {
|
||||
margin: 0.625rem;
|
||||
}
|
||||
|
||||
.video-player {
|
||||
display: block;
|
||||
margin: 0 auto; /* Center the video horizontally */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue