Fix Full Book view layout so the entire manuscript is scrollable
The Full Book pane had no CSS rule, so it fell back to block layout: the CodeMirror editor grew to the full manuscript height and was clipped by the overflow-hidden workspace, leaving the content below the first screen unreachable and making a multi-chapter book appear as a single chapter. Give .full-book-view the same flex-column layout as .chapter-view so the editor is bounded and scrolls internally. Add an e2e assertion (fbLayoutOk) that checks the computed layout is a flex column with the editor bounded to the viewport, so this class of rendering regression is caught in future runs.
This commit is contained in:
parent
6b1a9da5cc
commit
424aeab8a1
2 changed files with 25 additions and 0 deletions
|
|
@ -437,6 +437,14 @@ html, body {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.full-book-view {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.chapter-header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue