diff --git a/src/view/com/util/layouts/withBreakpoints.tsx b/src/view/com/util/layouts/withBreakpoints.tsx index 71971c604b..c3c50d7627 100644 --- a/src/view/com/util/layouts/withBreakpoints.tsx +++ b/src/view/com/util/layouts/withBreakpoints.tsx @@ -1,7 +1,6 @@ import React from 'react' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' -import {isNative} from '#/platform/detection' export const withBreakpoints =

( Mobile: React.ComponentType

, @@ -9,12 +8,12 @@ export const withBreakpoints =

( Desktop: React.ComponentType

, ): React.FC

=> function WithBreakpoints(props: P) { - const {isMobile, isTabletOrMobile} = useWebMediaQueries() + const {isMobile, isTablet} = useWebMediaQueries() - if (isMobile || isNative) { + if (isMobile) { return } - if (isTabletOrMobile) { + if (isTablet) { return } return diff --git a/src/view/com/util/load-latest/LoadLatestBtn.tsx b/src/view/com/util/load-latest/LoadLatestBtn.tsx index 2310b1f271..f1a65655f1 100644 --- a/src/view/com/util/load-latest/LoadLatestBtn.tsx +++ b/src/view/com/util/load-latest/LoadLatestBtn.tsx @@ -81,10 +81,12 @@ const styles = StyleSheet.create({ alignItems: 'center', justifyContent: 'center', }, - loadLatestInline: { - // @ts-ignore web only - left: 'calc(50vw - 282px)', - }, + // @ts-ignore web only + loadLatestInline: isWeb + ? { + left: 'calc(50vw - 282px)', + } + : {}, loadLatestOutOfLine: { // @ts-ignore web only left: 'calc(50vw - 382px)',