Commit Graph

2542 Commits

Author SHA1 Message Date
schroda
76cd9fd309 Remove "useContext" usages with hooks 2025-05-03 12:40:28 +02:00
schroda
385b3066cc Delete unused component 2025-05-03 12:17:52 +02:00
schroda
b80006504e Move files into different folders 2025-05-03 12:16:48 +02:00
schroda
11b75103eb Reduce card list padding 2025-05-03 12:05:11 +02:00
schroda
736e556ccd Replace missed occurrences with "ListCardContent" 2025-05-03 11:56:09 +02:00
schroda
c24d7ca2ef Fix link to extension repo setting 2025-05-03 11:36:13 +02:00
schroda
24a0cfb3b0 Use "mantine/hooks" 2025-05-02 18:37:03 +02:00
schroda
e982b7c417 Preserve scroll position during infinite scroll initial previous chapter render 2025-05-02 17:32:56 +02:00
schroda
d603c614ef Extract scroll preservation data collection 2025-05-02 17:32:56 +02:00
schroda
d606130846 Ignore trailing image resize for scroll preservation
Resizes of elements below the current scroll position do not cause a layout shift; thus, they can be ignored.

This was a problem when using tap zone click scrolling, because the scrolling was aborted by the scroll position preservation
2025-05-02 17:32:55 +02:00
schroda
0c4e772542 Style scrollbar only on devices with hover support
only style scrollbar for devices that support hovering; otherwise, they most likely are touch devices that should
use the native scrollbar.
this is necessary since for some reason chromium uses the native scrollbar for the window scrollbar and the
styled non-native scrollbar for element scrollbars on those devices
2025-05-02 02:30:11 +02:00
schroda
36aa822455 Use window scroll for grouped virtuosos 2025-05-02 02:30:11 +02:00
schroda
36fa8dbe38 Improve scroll preservation on window resize
The previous logic just preserved the scroll position on any resize event regardless of if the resize (width or height change) caused the scroll position to get lost or not.

E.g., when the "page scale mode" respected only the width and the resize only changed the window height, it still preserved the scroll position, while the scroll position did not get lost.
2025-05-02 02:30:06 +02:00
schroda
ef3538d762 Cleanup "useReaderPreserveScrollPosition" 2025-04-28 00:52:02 +02:00
schroda
59bbb53790 Fix tracker oauth client redirect url
Regression 0a7bf7cf78
2025-04-27 03:54:28 +02:00
schroda
a1cdc785c1 Prevent scrolling while dragging on the reader progress bar
On e.g., iOS changing the current page via dragging the progress bar caused the reader to scroll, which made the progress dragging act weirdly
2025-04-27 01:05:25 +02:00
schroda
beda5096d1 Add option to disable "infinite chapter scroll" 2025-04-26 23:19:01 +02:00
schroda
f9930b94ca Fix page resume on reader chapter list selection of already visible chapter
In case the selected chapter was already visible, the page to resume did not get scrolled into view
2025-04-26 23:12:00 +02:00
schroda
37127893b4 Make reader settings dialog transparent on some changes
- width change
- custom filter change
2025-04-25 02:51:48 +02:00
schroda
112c700fb7 Fix extensions not being sorted by name 2025-04-25 01:53:38 +02:00
schroda
11755299e9 Cleanup DownloadQueue 2025-04-25 01:36:14 +02:00
schroda
1b7338f5e3 Extract list card content 2025-04-25 01:18:12 +02:00
schroda
c0ab5f93a1 Extract list card avatar 2025-04-25 01:17:54 +02:00
schroda
6a6ff2cbe1 Fix extension repo url on small screens 2025-04-25 00:29:37 +02:00
schroda
b503ab07e9 Fix source/extension repo url word break 2025-04-25 00:27:28 +02:00
schroda
24629407cb Fix tsc error 2025-04-24 23:53:49 +02:00
schroda
e1905b267b Make extension filtering options optional 2025-04-24 13:44:59 +02:00
schroda
394d541746 Fix source filtering for nsfw
Filtering was always applied even if "showNsfw" was undefined and thus, should not be considered for filtering
2025-04-24 13:44:30 +02:00
schroda
d3de9a6db3 Fix dependency array of extensions filtering 2025-04-24 13:38:35 +02:00
schroda
4c04e1d17c Normalize language code comparisons
Due to using the browsers' preferred languages by default, there was a possibility that the preferred language codes did not match any extension/source language, which lead to broken filtering.

While this happened, it was also possible that the preferred languages still matched properly to a language in the language filter, which caused confusion.
This was the case e.g., for "en-GB" or "en-US"
2025-04-24 13:38:05 +02:00
schroda
01856b9847 Always show installed extensions 2025-04-24 13:14:48 +02:00
schroda
c9490f1887 Prevent language filter list from reseting scroll position on selection change 2025-04-23 01:56:31 +02:00
schroda
d277370b28 Add ".aiignore" 2025-04-22 22:19:24 +02:00
schroda
f93abd5b93 Place errored source searches after ones with search results 2025-04-22 21:30:28 +02:00
schroda
f19c5d5038 Fallback to english in case no preferred languages are found 2025-04-22 10:37:47 +02:00
schroda
477656a3a9 Fix saving changed selected languages 2025-04-22 10:34:59 +02:00
schroda
ee3e741688 Lazy load missed routes 2025-04-21 23:01:05 +02:00
schroda
4c1a493cf5 Save "showNsfw" setting on server 2025-04-21 19:21:06 +02:00
schroda
2022b7028e Always use "other" as "local source" language 2025-04-21 19:11:43 +02:00
schroda
6fef7b3aa4 Show selected languages in filter on top 2025-04-21 19:02:53 +02:00
schroda
d661b1e3f2 Fix "scripts tokens" template file name 2025-04-21 19:02:52 +02:00
schroda
60cb7b31ab Cleanup "LangSelect" 2025-04-21 19:02:50 +02:00
schroda
4175ffbc1e Cleanup "SourceAll.tsx" 2025-04-21 18:09:29 +02:00
schroda
98f383e79e Cleanup "Source.tsx" 2025-04-21 18:09:01 +02:00
schroda
063f2958a1 Introduce "sources" util class 2025-04-21 17:48:00 +02:00
schroda
4a9f90b746 Introduce "sources" util class 2025-04-21 17:02:51 +02:00
schroda
633f58b563 Remove "sourceForcedDefaultLangs" 2025-04-21 16:50:06 +02:00
schroda
fef33f15f9 Remove "forced languages" from "LangSelect" 2025-04-21 16:31:51 +02:00
schroda
a48febeda5 Save selected extension languages on the server 2025-04-21 16:19:35 +02:00
schroda
9dfd9ed5e3 Cleanup "Extensions" 2025-04-21 16:19:34 +02:00