Skip to content

Commit

Permalink
Fix width of Thesaurus left arrow button
Browse files Browse the repository at this point in the history
SVG images may not have an intrinsic width and height defined.
This can cause max-content to behave unexpectedly since it
relies on the size of the content, and an SVG without dimensions
may not contribute to the content's width.

We set width explicitely in this case.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5ebed738bd4f3a12a96596ddac07341097e43bc3
  • Loading branch information
timar committed Dec 26, 2024
1 parent ef0fb24 commit 7578884
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser/css/btns.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ button.has-img {
min-width: auto !important;
}

/* Thesaurus <- button */
button#left.has-img > img {
width: 16px;
}

/* Calc Auto-Filter buttons coming from core */
[data-theme='dark'] button#select_current.has-img > img {
filter: invert(.9)
Expand Down

0 comments on commit 7578884

Please sign in to comment.