mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-27 02:25:47 +02:00
Fix layout of thumbnails when split/merge is disabled
This commit is contained in:
parent
d859d78bb5
commit
cdc1c8af40
@ -613,12 +613,20 @@
|
|||||||
--input-dim: 16px;
|
--input-dim: 16px;
|
||||||
--gap-between-input-and-thumbnail: 16px;
|
--gap-between-input-and-thumbnail: 16px;
|
||||||
|
|
||||||
|
&:not(&:has(input)) {
|
||||||
|
--input-dim: 0px;
|
||||||
|
--gap-between-input-and-thumbnail: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
gap: var(--gap-between-input-and-thumbnail);
|
gap: var(--gap-between-input-and-thumbnail);
|
||||||
width: 190px;
|
width: calc(
|
||||||
|
var(--thumbnail-width) + 2 *
|
||||||
|
(var(--input-dim) + var(--gap-between-input-and-thumbnail))
|
||||||
|
);
|
||||||
height: auto;
|
height: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
scroll-margin-top: 20px;
|
scroll-margin-top: 20px;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user