File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
apps/desktop/layer/renderer/src/modules/discover Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,14 @@ export const DiscoverFeedForm = ({
90
90
noDescription,
91
91
routeParams,
92
92
viewportClassName,
93
+ rootClassName,
93
94
} : {
94
95
route : RSSHubRoute
95
96
routePrefix : string
96
97
noDescription ?: boolean
97
98
routeParams ?: RouteParams
98
99
viewportClassName ?: string
100
+ rootClassName ?: string
99
101
} ) => {
100
102
const { t } = useTranslation ( )
101
103
const keys = useMemo (
@@ -227,7 +229,11 @@ export const DiscoverFeedForm = ({
227
229
< Form { ...form } >
228
230
< ScrollArea . ScrollArea
229
231
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
+ ) }
231
237
viewportClassName = { cn ( "pt-4" , viewportClassName ) }
232
238
>
233
239
< div className = "flex" >
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ export function DiscoverTransform() {
70
70
{ data ?. rsshub ! . routes && (
71
71
< div className = "bg-material-ultra-thin w-full max-w-screen-sm rounded-lg border p-5 shadow-sm" >
72
72
< DiscoverFeedForm
73
+ rootClassName = "max-h-none"
73
74
routePrefix = "rsshub"
74
75
route = { data ?. rsshub . routes [ "/transform/html/:url/:routeParams" ] ! }
75
76
routeParams = { transformRouteParams }
You can’t perform that action at this time.
0 commit comments