Repository navigation
fix(pdf): the toolbar wraps in a narrow pane instead of squeezing its buttons - #13878
Conversation
|
|
||
| > .r { | ||
| /* In a narrow pane the buttons go to a second row instead of squeezing their labels */ | ||
| @apply flex-wrap justify-end; |
There was a problem hiding this comment.
🟡 Open popups block wrapped toolbar controls
When a narrow pane wraps the toolbar, opening a popup blocks clicks on Close and other lower-row controls. The later popup overlay starts 40px below the header top and covers that row.
Learn more
The toolbar lives inside a positioned header. Its popup overlays are later siblings in pdf-toolbar. The overlay rule places each visible overlay 40px below that header. Once the toolbar wraps below 40px, an open settings or finder overlay occupies the same area as the lower-row buttons and receives their clicks instead.
Example: At a 290px pane width, open settings, then click Close on the toolbar's lower row. The click lands on the transparent settings overlay and dismisses settings instead of closing the PDF.
Recommended fix: Keep popup overlays from intercepting toolbar rows, such as by placing them below the full wrapped toolbar or restricting their hit area outside the header. Check settings, finder, and outline with a wrapped toolbar.
Was this helpful? React with 👍 or 👎 to provide feedback.
|
Agreed, fixed in the latest commit: |
b9d77a0 to
e96a016
Compare
7aeea65 to
c24e3ff
Compare
…of squeezing its buttons
In a half-width window the PDF pane's toolbar is wider than the pane: the buttons shrank until the Close label ("关闭" in Chinese) stacked one character per line, and the leftmost buttons were pushed out of the header where they could not be clicked. The buttons now keep their size and label on one line, and the row wraps onto a second line when it does not fit.
Fixes logseq#13519
…oolbar row stays clickable The settings, finder and outline overlays were placed 40px below the header's top, the height of a one-row toolbar. With the toolbar wrapped onto a second row, an open overlay covered that row and took its clicks. They now start at the bottom of the header (`top: 100%`).
c24e3ff to
725e422
Compare
Fixes #13519.
In a half-width window the PDF pane's toolbar (10 icon buttons, the pager and Close) is wider than the pane. The buttons could shrink and the row could not wrap, so the Close label ("关闭" in Chinese) stacked one character per line and the leftmost buttons were pushed outside the header, where they could not be clicked.
pdf.css: the toolbar buttons getwhitespace-nowrap shrink-0, and the button row getsflex-wrap justify-end, so in a narrow pane the row wraps onto a second line, right-aligned, with every button whole and clickable. A wide pane is unchanged (one row).Checked by rendering the toolbar's markup with the built
static/css/style.cssin a 410 px and a 290 px header: