Skip to content

Commit

Permalink
Fixed scroll bug on mobile reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Mug committed Sep 18, 2022
1 parent 1f8aafd commit 9c77d5e
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/css/Chapter.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,22 +327,32 @@ body {
.reader[data-renderer="long-strip"].fit-vertical .reader-image-wrapper img {
object-fit: scale-down;
}
.reader-main,
/*.reader-main,
.reader-images,
.reader-image-wrapper,
/*.reader-images img {
.reader-images img {
max-width: none;
max-height: none;
}*/

.reader.fit-vertical:not([data-renderer="long-strip"]) .reader-main {
/* this height & .reader-images.col seem necessary */
height: calc(100vh - 3.5rem);
max-height: calc(100vh - 3.5rem);
overflow-x: auto;
}
.reader.fit-vertical[data-renderer="long-strip"] .reader-main {
height: calc(100vh - 3.5rem);
max-height: unset;
}
@media (min-width: 992px) {
.reader.fit-vertical:not([data-renderer="long-strip"]) .reader-main {
/* this height & .reader-images.col seem necessary */
height: calc(100vh - 3.5rem);
max-height: calc(100vh - 3.5rem);
overflow-x: auto;
}
.reader.fit-vertical[data-renderer="long-strip"] .reader-main {
height: calc(100vh - 3.5rem);
max-height: unset;
}
}
.reader.fit-vertical.hide-header .reader-main {
height: calc(100vh - 3.5rem);
Expand Down

0 comments on commit 9c77d5e

Please sign in to comment.