diff options
author | Hailey <me@haileyok.com> | 2024-07-24 14:39:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 14:39:01 -0700 |
commit | 11f24159428f517e26c716f3afffb85fdde93178 (patch) | |
tree | 5e015e1068d5658220aa8797b66aa40eb0a74ea6 /src/view/screens/NotificationsSettings.tsx | |
parent | bfb7f6efeff5117c80b8ad5ba4227623a4ce6e80 (diff) | |
download | voidsky-11f24159428f517e26c716f3afffb85fdde93178.tar.zst |
make some settings screens scrollable for accessibility (#4819)
* make settings scrollable for accessibility * nit
Diffstat (limited to 'src/view/screens/NotificationsSettings.tsx')
-rw-r--r-- | src/view/screens/NotificationsSettings.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/screens/NotificationsSettings.tsx b/src/view/screens/NotificationsSettings.tsx index 2716a07f9..8955119a6 100644 --- a/src/view/screens/NotificationsSettings.tsx +++ b/src/view/screens/NotificationsSettings.tsx @@ -8,7 +8,7 @@ import {AllNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types' import {useNotificationFeedQuery} from '#/state/queries/notifications/feed' import {useNotificationsSettingsMutation} from '#/state/queries/notifications/settings' import {ViewHeader} from '#/view/com/util/ViewHeader' -import {CenteredView} from '#/view/com/util/Views' +import {ScrollView} from '#/view/com/util/Views' import {atoms as a, useTheme} from '#/alf' import {Error} from '#/components/Error' import * as Toggle from '#/components/forms/Toggle' @@ -34,7 +34,7 @@ export function NotificationsSettingsScreen({}: Props) { : serverPriority return ( - <CenteredView style={a.flex_1} sideBorders> + <ScrollView stickyHeaderIndices={[0]}> <ViewHeader title={_(msg`Notification Settings`)} showOnDesktop @@ -89,6 +89,6 @@ export function NotificationsSettingsScreen({}: Props) { </View> </View> )} - </CenteredView> + </ScrollView> ) } |