Commit Graph
16 Commits
Author SHA1 Message Date
schroda db7aad58ec Convert reader image placeholder styling to vw/vh 2025-01-21 19:19:25 +01:00
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 7c98bab43b Prevent TypeError and incorrect state updates for "pageLoadStates"
Page load state updates of an already closed chapter caused TypeErrors or incorrect state updates.
2024-12-30 21:03:10 +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 91a1f75de6 Properly center loading placeholders of non reader images 2024-12-20 13:06:12 +01:00
schroda 90934b164a Properly pass "retryKeyPrefix" to "SpinnerImage" 2024-12-20 13:06:12 +01:00
schroda e4253633c9 Properly center images in "single page mode"
While the reader width was set images weren't centered correctly in the images wrapper element
2024-12-17 01:27:42 +01:00
schroda 33b756219b Apply passed "margin top" to image placeholder 2024-12-17 00:46:17 +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 7cf78e771a Reader page rendering 2024-12-09 02:38:37 +01:00