Skip to content

Commit 5b9c586

Browse files
committed
Fix padding on scrollviews
1 parent febd7c4 commit 5b9c586

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed
File renamed without changes.

src/stores/ui.store.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { createBaseItems } from './items'
2323
import MiniSearch from 'minisearch'
2424
import * as Sentry from '@sentry/react-native'
2525
import { storage } from './storage'
26-
import { defaultShortcuts } from 'lib/shorcuts'
26+
import { defaultShortcuts } from 'lib/shortcuts'
2727

2828
const exprParser = new Parser()
2929

src/widgets/search.widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FileIcon } from 'components/FileIcon'
66
import { Key } from 'components/Key'
77
import { LoadingBar } from 'components/LoadingBar'
88
import { MainInput } from 'components/MainInput'
9-
import { renderToKeys } from 'lib/shorcuts'
9+
import { renderToKeys } from 'lib/shortcuts'
1010
import { observer } from 'mobx-react-lite'
1111
import { FC, useEffect, useRef } from 'react'
1212
import {

src/widgets/settings/general.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export const General = observer(() => {
2020
return (
2121
<ScrollView
2222
showsVerticalScrollIndicator={false}
23-
StickyHeaderComponent={() => null}
24-
className="flex-1"
25-
contentContainerClassName="pb-5 px-5 -mt-4 gap-2">
23+
automaticallyAdjustContentInsets
24+
className="flex-1 -mt-10"
25+
contentContainerClassName="p-5 gap-2">
2626
<View className="flex-row items-center p-3 subBg rounded-lg border border-lightBorder dark:border-darkBorder">
2727
<View className="flex-1">
2828
<Text className="text-sm text">Open at Login</Text>

src/widgets/settings/items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import clsx from 'clsx'
44
import Favicon from 'components/Favicon'
55
import { FileIcon } from 'components/FileIcon'
66
import { MySwitch } from 'components/MySwitch'
7-
import { renderToKeys } from 'lib/shorcuts'
7+
import { renderToKeys } from 'lib/shortcuts'
88
import { observer } from 'mobx-react-lite'
99
import {
1010
Image,

src/widgets/settings/scripts.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ import { Assets } from 'assets'
88
export const Scripts: FC = observer(() => {
99
const store = useStore()
1010
const username = solNative.userName()
11+
1112
return (
1213
<ScrollView
13-
className="flex-1"
14-
contentContainerClassName="-mt-4 pb-5 px-5 gap-2 flex-grow"
1514
showsVerticalScrollIndicator={false}
16-
StickyHeaderComponent={() => null}
15+
automaticallyAdjustContentInsets
16+
className="flex-1 -mt-10"
17+
contentContainerClassName="p-5 gap-2"
1718
>
1819
<View className="flex-row items-center p-3 subBg rounded-lg border border-lightBorder dark:border-darkBorder mb-2">
1920
<Image

0 commit comments

Comments
 (0)