Skip to content

Commit 973add8

Browse files
authored
Merge pull request #20779 from calixteman/fix_sidebar_css
Fix layout of thumbnails when split/merge is disabled
2 parents ae507c4 + cdc1c8a commit 973add8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

web/views_manager.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,12 +613,20 @@
613613
--input-dim: 16px;
614614
--gap-between-input-and-thumbnail: 16px;
615615

616+
&:not(&:has(input)) {
617+
--input-dim: 0px;
618+
--gap-between-input-and-thumbnail: 0px;
619+
}
620+
616621
display: inline-flex;
617622
justify-content: flex-end;
618623
align-items: center;
619624
flex-direction: row-reverse;
620625
gap: var(--gap-between-input-and-thumbnail);
621-
width: 190px;
626+
width: calc(
627+
var(--thumbnail-width) + 2 *
628+
(var(--input-dim) + var(--gap-between-input-and-thumbnail))
629+
);
622630
height: auto;
623631
position: relative;
624632
scroll-margin-top: 20px;

0 commit comments

Comments
 (0)