Commit Graph
13 Commits
Author SHA1 Message Date
schroda 7fad96dab7 Convert reader image styling to vw/vh
Preparation for infinite scroll, since there will be a wrapper which fits its content in width and height, thus, percentage based dimension won't work anymore
2025-01-21 19:19:22 +01:00
schroda da600bcdec Extract reader pages wrapper styling 2025-01-21 19:19:21 +01:00
schroda b7cb245abc Rename "getImageWidthStyling" to "getReaderImageStyling" 2025-01-18 23:13:56 +01:00
schroda f808614e6c Prevent layout shifts in continuous pagers
I was unable to find a fix for this problem, thus, the only solution I see is disabling this functionality for the continuous readers.

Due to preloading leading pages, the layout got shifted once the pages got loaded.
This messed with the scroll position which caused the top of the scrolled into views pages to not be at the top of the viewport anymore.
2024-12-31 02:51:20 +01:00
schroda d67d6f7d28 Move "ReaderTransitionPage" setting props to "withPropsFrom" HOC 2024-12-25 02:38:36 +01:00
schroda 34ad331a71 Improve memoization of page rendering 2024-12-22 00:48:22 +01:00
schroda 58c402dd0e Memoize components 2024-12-22 00:48:21 +01:00
schroda f5642af219 Use HOC for reader context usage 2024-12-22 00:48:18 +01:00
schroda f51446995a Fix "continuous vertical pager" unintentional page gaps
Depending on the screen size and e.g. the set "reader width" pages might not have filled out the full img elements size due to "object-fit contain".
This was caused due to the image wrappers flex container "align-items center" which slightly reduced the images width to some ".xy" number (e.g. instead of wrappers width 258px, the images were something like 257.83px)
2024-12-16 22:09:00 +01:00
schroda 15a70760ca Fix double page with different dimensions
In case two pages were displayed with different dimensions, the bigger page might take up more than 50% of the screen.
In this case the bigger page got limited to 50% which caused in to unintentionally get reduced in size
2024-12-16 22:08:59 +01:00
schroda be0d1dbf30 Add logic to retry all errored pages 2024-12-09 02:38:37 +01:00
schroda fb31a92cd7 Reader transition page 2024-12-09 02:38:37 +01:00
schroda 7cf78e771a Reader page rendering 2024-12-09 02:38:37 +01:00