fix: an index entry keeps the hard break its heading has
A book's chapter heading is "Chapter 1" and its title on two lines, and both LibreOffice and Word copy that break into the index. We joined it into one line, so a fixture's contents came out 18 rows short. The leader and page number ride the last of an entry's lines (align-items: last baseline).
This commit is contained in:
1 parent
860e25d8c8
commit
3cf1d34035
3 files changed
+13
-4
No files matched your search
@@ -225,7 +225,9 @@
|
||||
}
|
||||
.paper .tiptap .toc-entry {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
/* The last one: an entry whose heading carries a hard break is several lines, and the
|
||||
leader and page number belong beside the last of them. */
|
||||
align-items: last baseline;
|
||||
cursor: pointer;
|
||||
}
|
||||
.paper .tiptap .toc-entry:hover .toc-text {
|
||||
|
||||
Reference in new issue
Block a user