diff options
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/login/Signin.tsx | 6 | ||||
-rw-r--r-- | src/view/com/notifications/Feed.tsx | 2 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 2 | ||||
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 1 | ||||
-rw-r--r-- | src/view/com/util/Views.web.tsx | 3 |
5 files changed, 8 insertions, 6 deletions
diff --git a/src/view/com/login/Signin.tsx b/src/view/com/login/Signin.tsx index 9604a32f3..78b24e68c 100644 --- a/src/view/com/login/Signin.tsx +++ b/src/view/com/login/Signin.tsx @@ -482,9 +482,9 @@ const ForgotPasswordForm = ({ const [email, setEmail] = useState<string>('') const {screen} = useAnalytics() - // useEffect(() => { - screen('Signin:ForgotPassword') - // }, [screen]) + useEffect(() => { + screen('Signin:ForgotPassword') + }, [screen]) const onPressSelectService = () => { store.shell.openModal({ diff --git a/src/view/com/notifications/Feed.tsx b/src/view/com/notifications/Feed.tsx index 5c1ee935b..da48059b8 100644 --- a/src/view/com/notifications/Feed.tsx +++ b/src/view/com/notifications/Feed.tsx @@ -81,7 +81,7 @@ export const Feed = observer(function Feed({ ) return ( - <View style={s.h100pct}> + <View style={s.hContentRegion}> <CenteredView> {view.isLoading && !data && <NotificationFeedLoadingPlaceholder />} {view.hasError && ( diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx index 0a092c46b..a417012b0 100644 --- a/src/view/com/post-thread/PostThread.tsx +++ b/src/view/com/post-thread/PostThread.tsx @@ -95,7 +95,7 @@ export const PostThread = observer(function PostThread({ onRefresh={onRefresh} onLayout={onLayout} onScrollToIndexFailed={onScrollToIndexFailed} - style={s.h100pct} + style={s.hContentRegion} contentContainerStyle={s.contentContainer} /> ) diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 9a652d389..e7421a26d 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -279,6 +279,7 @@ const styles = StyleSheet.create({ borderWidth: 1, borderRadius: 4, marginBottom: 10, + paddingBottom: 10, }, outerNoTop: { borderTopWidth: 0, diff --git a/src/view/com/util/Views.web.tsx b/src/view/com/util/Views.web.tsx index 3d9abd893..1ffd7844c 100644 --- a/src/view/com/util/Views.web.tsx +++ b/src/view/com/util/Views.web.tsx @@ -23,6 +23,7 @@ import { ViewProps, } from 'react-native' import {addStyle, colors} from 'lib/styles' +import {DESKTOP_HEADER_HEIGHT} from 'lib/constants' export function CenteredView({ style, @@ -78,7 +79,7 @@ const styles = StyleSheet.create({ }, containerScroll: { width: '100%', - height: '100%', + height: `calc(100vh - ${DESKTOP_HEADER_HEIGHT}px)`, maxWidth: 600, marginLeft: 'auto', marginRight: 'auto', |