Tweak web styles and fix scroll overflow
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
|||||||
} from '#/state/queries/lists-with-membership'
|
} from '#/state/queries/lists-with-membership'
|
||||||
import {useSession} from '#/state/session'
|
import {useSession} from '#/state/session'
|
||||||
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
import {UserAvatar} from '#/view/com/util/UserAvatar'
|
||||||
import {atoms as a, native, platform, useTheme} from '#/alf'
|
import {atoms as a, platform, useBreakpoints, useTheme, web} from '#/alf'
|
||||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||||
import * as Dialog from '#/components/Dialog'
|
import * as Dialog from '#/components/Dialog'
|
||||||
import {BulletList_Stroke2_Corner0_Rounded as ListIcon} from '#/components/icons/BulletList'
|
import {BulletList_Stroke2_Corner0_Rounded as ListIcon} from '#/components/icons/BulletList'
|
||||||
@@ -84,8 +84,10 @@ function ListsContent({
|
|||||||
onAdd?: (listUri: string) => void
|
onAdd?: (listUri: string) => void
|
||||||
onRemove?: (listUri: string) => void
|
onRemove?: (listUri: string) => void
|
||||||
}) {
|
}) {
|
||||||
|
const t = useTheme()
|
||||||
const control = Dialog.useDialogContext()
|
const control = Dialog.useDialogContext()
|
||||||
const {t: l} = useLingui()
|
const {t: l} = useLingui()
|
||||||
|
const {gtMobile} = useBreakpoints()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data,
|
data,
|
||||||
@@ -128,7 +130,8 @@ function ListsContent({
|
|||||||
a.align_center,
|
a.align_center,
|
||||||
a.flex_row,
|
a.flex_row,
|
||||||
a.pb_lg,
|
a.pb_lg,
|
||||||
native(a.pt_lg),
|
t.atoms.bg,
|
||||||
|
gtMobile ? a.pt_2xl : a.pt_xl,
|
||||||
]}>
|
]}>
|
||||||
<Text style={[a.text_lg, a.font_semi_bold]}>
|
<Text style={[a.text_lg, a.font_semi_bold]}>
|
||||||
{profile ? (
|
{profile ? (
|
||||||
@@ -172,6 +175,7 @@ function ListsContent({
|
|||||||
}
|
}
|
||||||
onEndReached={() => void onEndReached()}
|
onEndReached={() => void onEndReached()}
|
||||||
onEndReachedThreshold={0.1}
|
onEndReachedThreshold={0.1}
|
||||||
|
stickyHeaderIndices={web([0])}
|
||||||
ListHeaderComponent={listHeader}
|
ListHeaderComponent={listHeader}
|
||||||
ListFooterComponent={
|
ListFooterComponent={
|
||||||
isFetchingNextPage ? (
|
isFetchingNextPage ? (
|
||||||
@@ -181,8 +185,9 @@ function ListsContent({
|
|||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
ListEmptyComponent={!isLoading && data ? <Empty /> : null}
|
ListEmptyComponent={!isLoading && data ? <Empty /> : null}
|
||||||
|
webInnerContentContainerStyle={[a.py_0]}
|
||||||
style={platform({
|
style={platform({
|
||||||
web: [a.px_2xl, {minHeight: 400}],
|
web: [a.px_2xl, a.pb_md],
|
||||||
native: [a.px_2xl, a.pt_lg],
|
native: [a.px_2xl, a.pt_lg],
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user