fix: a frame is alone on its line, not only on its block
The no-descent rule matched a block holding nothing but frames, so the image-break-caption idiom kept a text descent under its picture — 0.9mm per figure, and LibreOffice's own guides stack dozens of them in tables. Test the run between two hard breaks instead and mark the frame itself.
This commit is contained in:
1 parent
db8f4439b1
commit
0830fff86f
3 files changed
+19
-10
No files matched your search
@@ -279,10 +279,10 @@
|
||||
vertical-align: baseline;
|
||||
line-height: 0;
|
||||
}
|
||||
/* Alone on its line (image.ts marks the block) the frame sets the line height by itself:
|
||||
no descent hangs below it, and every vertical-pos but `offset` is moot (probed). Beats
|
||||
/* Alone on its line (image.ts marks the frame) it sets the line height by itself: no
|
||||
descent hangs below it, and every vertical-pos but `offset` is moot (probed). Beats
|
||||
the node view's own inline alignment, which has no other way to know. */
|
||||
.paper .tiptap .image-line .image-node:not([data-v-align='offset']) {
|
||||
.paper .tiptap .image-node.image-line:not([data-v-align='offset']) {
|
||||
vertical-align: bottom !important;
|
||||
}
|
||||
/* While selected, lift the node (and its handles) above the header/footer layer
|
||||
|
||||
Reference in new issue
Block a user