Skip to content

Commit 0fc79c4

Browse files
kovsuInnei
andauthored
fix(desktop): add overflow-scroll for content visibility (#3758)
* fix(desktop): add overflow-scroll for content visibility * fix(discover): no scroll in transform form Signed-off-by: Innei <tukon479@gmail.com> --------- Signed-off-by: Innei <tukon479@gmail.com> Co-authored-by: Innei <tukon479@gmail.com>
1 parent 7702d8a commit 0fc79c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

apps/desktop/layer/renderer/src/modules/discover/DiscoverFeedForm.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,14 @@ export const DiscoverFeedForm = ({
9090
noDescription,
9191
routeParams,
9292
viewportClassName,
93+
rootClassName,
9394
}: {
9495
route: RSSHubRoute
9596
routePrefix: string
9697
noDescription?: boolean
9798
routeParams?: RouteParams
9899
viewportClassName?: string
100+
rootClassName?: string
99101
}) => {
100102
const { t } = useTranslation()
101103
const keys = useMemo(
@@ -227,7 +229,11 @@ export const DiscoverFeedForm = ({
227229
<Form {...form}>
228230
<ScrollArea.ScrollArea
229231
flex
230-
rootClassName={cn(isInModal && "-mx-4 px-4 -mt-4", "max-h-[calc(100vh-200px)] grow")}
232+
rootClassName={cn(
233+
isInModal && "-mx-4 px-4 -mt-4",
234+
"max-h-[calc(100vh-200px)] grow overflow-scroll",
235+
rootClassName,
236+
)}
231237
viewportClassName={cn("pt-4", viewportClassName)}
232238
>
233239
<div className="flex">

apps/desktop/layer/renderer/src/modules/discover/DiscoverTransform.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export function DiscoverTransform() {
7070
{data?.rsshub!.routes && (
7171
<div className="bg-material-ultra-thin w-full max-w-screen-sm rounded-lg border p-5 shadow-sm">
7272
<DiscoverFeedForm
73+
rootClassName="max-h-none"
7374
routePrefix="rsshub"
7475
route={data?.rsshub.routes["/transform/html/:url/:routeParams"]!}
7576
routeParams={transformRouteParams}

0 commit comments

Comments
 (0)