Commit Graph

1760 Commits

Author SHA1 Message Date
schroda
e0567fac5d Extract extensions group header 2025-04-21 16:19:33 +02:00
schroda
91beeb2fb5 Fix update extensions failure error message pluralization 2025-04-21 16:19:32 +02:00
schroda
d01837d5cd Move filtering to "groupExtensionsByLanguage" 2025-04-21 16:19:29 +02:00
schroda
87a496cec0 Cleanup "groupExtensionsByLanguage" 2025-04-21 16:18:43 +02:00
schroda
78030b103a Extract extensions language extraction into own function 2025-04-21 16:00:54 +02:00
schroda
214fa7710d Get rid of forced "All" extensions language 2025-04-21 01:02:08 +02:00
schroda
05082c24f4 Infer user preferred languages for default source/extension languages 2025-04-21 00:40:51 +02:00
schroda
27fb8823e9 Remove too much space of "TypographyMaxLines" 2025-04-21 00:22:08 +02:00
schroda
0733c930d4 Save chapter list options on server 2025-04-20 21:45:26 +02:00
schroda
5c232c77a7 Do not pass empty string as img src
Raises the following error:
"An empty string ("") was passed to the src attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to src instead of an empty string"
2025-04-18 21:57:01 +02:00
schroda
3f93549f34 Update to react v19 2025-04-18 21:45:00 +02:00
schroda
213f561fe4 Replace "react-beautiful-dnd" with "dnd-kit"
"react-beautiful-dnd" has been deprecated for quite some time
2025-04-18 20:55:17 +02:00
schroda
55c4a92b26 Update dependencies
Fix missing peer dependencies:
  - warning " > @graphql-codegen/client-preset@4.8.0" has unmet peer dependency "graphql-sock@^1.0.0".
  - warning " > @graphql-codegen/typescript-operations@4.6.0" has unmet peer dependency "graphql-sock@^1.0.0"

Ignore missing peer dependency for "mui-nested-menu" (package itself doesn't get used but a copy&pasted and modified version of its "NestedMenuItem" component
2025-04-18 00:54:33 +02:00
schroda
ecbc0e3be2 Support different languages for auto webtoon detection 2025-04-18 00:34:26 +02:00
schroda
9269f2a70c Add manga "comic" sources 2025-04-18 00:34:25 +02:00
schroda
898cc200f0 Remove "Infinity" usage 2025-04-18 00:34:23 +02:00
schroda
76167ebb67 Set sensible gql ws-client retry attempt count 2025-04-18 00:34:22 +02:00
schroda
a48cb0ce27 Handle html in description of manga 2025-04-18 00:34:20 +02:00
schroda
0a7bf7cf78 Use set "base url" for "oauth redirect url" 2025-04-18 00:34:19 +02:00
schroda
882638b7c1 Fix jumpiness of manga description collapse/expand button 2025-04-18 00:34:17 +02:00
schroda
48d96afa85 Improve snackbar styling
- allow different max width depending on screen width
- decrease max description length
2025-04-18 00:34:16 +02:00
schroda
d0b0322f08 Fix webUI stable changelog url
In case the "webui update status" has already been reset, the "tag" of the status is just an empty string and will cause an invalid url.

Besides this, it is currently not possible to point to the actual changelog of a stable release, because the "tag" is not the actual "github tag" and thus, the url just points to a non-existing release
2025-04-18 00:29:18 +02:00
schroda
791ccf1f6a Handle server version changes
Server version now contains the "revision" as the "patch" number
2025-04-07 00:01:54 +02:00
schroda
01cdbd90b8 Show "nav bar item" as active for child routes 2025-04-05 15:41:12 +02:00
schroda
0b97e8bb8d Move "About" outside "Settings" in regard to routing
Is already not part of the settings anymore, however, the route was never updated
2025-04-05 15:41:11 +02:00
schroda
8cbc8c5099 Disable "more" route on desktop 2025-04-05 15:38:41 +02:00
schroda
dcf1b5b1c2 Only show hidden nav bar items in "More" page 2025-04-05 15:38:40 +02:00
schroda
dbf06a54b9 Update available languages 2025-04-05 13:08:48 +02:00
schroda
e6a105c766 Fix increase/decrease of auto scroll speed
Hotkeys were switched and did the opposite of their intended action
2025-04-05 13:01:40 +02:00
schroda
d89fbf9cf5 Cleanup "useReaderPreserveScrollPosition" 2025-04-05 12:56:44 +02:00
schroda
da34c77f03 Only observe "ReaderChapterViewer" resize events for scroll position preservation
It's not necessary to observe all elements, since "ReaderChapterViewer" is the parent and thus increases/decreases in size in case its children change.
2025-04-05 12:50:14 +02:00
schroda
b37ff532f5 Fix reverted code after merge
For some reason github didn't show a merge conflict on the pr
2025-04-05 12:48:36 +02:00
Constantin Piber
4423dee14e Fix preserving scroll position on infinite scroll previous chapter load (#913)
When scrolling to the previous chapter, which has not been preloaded, the scroll position got lost due to the resulting layout shift

* Update scroll preserve by tracking cursor

* Clean up interface

* Observe just the wrappers instead of individual images

* Switch to `IntersectionObserver` for tracking active element

* Clean up adding of observations

Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>

---------

Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>
2025-04-05 12:45:52 +02:00
schroda
b3860e4351 Preserve current position on "reading direction" change 2025-04-05 01:06:59 +02:00
schroda
e1895b21e3 Use "ReaderChapterViewer" as "root" for "IntersectionObserver" for "infinite scroll"
Using the actual "document element" as the "intersection observer root" causes issues in case the available reader width is less than the viewport.
In these cases sometimes the previous/next chapter never loaded because the necessary intersection never fired.
2025-04-05 01:05:54 +02:00
schroda
0f49115b23 Keep rendered chapters on infinite scroll chapter change
The changes from 642708b8b3 didn't consider the case were the chapter change was triggered due to scrolling to the unloaded previous/next chapter with infinite scroll
2025-04-02 02:45:22 +02:00
schroda
642708b8b3 Immediately open previous/next chapter on reader nav bar button click
The logic didn't handle cases were the next/previous chapter wasn't loaded yet, which lead to the load happening in the background without any user feedback.
2025-04-02 02:27:01 +02:00
schroda
7a7a0dfa9c Fix tsc error 2025-04-02 01:25:20 +02:00
schroda
9ad1af4846 Prevent mui card ripple on child element click 2025-04-02 01:25:17 +02:00
schroda
517610ac6d Fix manga list option menu on mobile 2025-04-02 01:24:50 +02:00
schroda
c81dce8efe Remove margin between icons in "extensions actions" 2025-03-28 19:06:08 +01:00
schroda
e3934545b0 Change "large" IconButtons to default size 2025-03-28 19:05:21 +01:00
schroda
99f14e2f27 Internationalize ErrorBoundary 2025-03-28 18:47:29 +01:00
schroda
07a44ed02b Fix hidden manga track dialog error 2025-03-28 18:23:33 +01:00
schroda
7145c33fbb Preserve current page on reader width change only when necessary
The pages only change in size with specific "page scale modes".
Thus, if these modes are not active, the scroll position will not be lost.

There are different cases were even with these modes active, the scroll position won't get lost (e.g. "fit width" while no page is larger than the available width), but handling these would be too cumbersome.

Ideally the relative scroll position would be preserved, however, from testing a little that seems to not work too well
2025-03-27 19:49:53 +01:00
schroda
a9bdf076c1 Prevent confirmation dialog from shifting layout in reader 2025-03-27 19:49:52 +01:00
schroda
3c1cb539ad Add spacing to confirmation dialog buttons 2025-03-27 19:49:51 +01:00
schroda
62bd4fdfb2 Require library entry removal confirmation in reader 2025-03-27 19:49:50 +01:00
schroda
72fb053971 Add "scroll amount" setting 2025-03-27 19:49:49 +01:00
schroda
b93c2d95e5 Add hotkey to close reader 2025-03-27 19:49:44 +01:00