Skip to content

Commit

Permalink
fix: fullWidth for all feed screens (#1463)
Browse files Browse the repository at this point in the history
Signed-off-by: clegirar <[email protected]>
  • Loading branch information
clegirar authored Dec 19, 2024
1 parent 5359170 commit 0088374
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
9 changes: 2 additions & 7 deletions packages/screens/Feed/components/MapFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ import { MobileTitle } from "@/components/ScreenContainer/ScreenContainerMobile"
import { Map } from "@/components/socialFeed/Map";
import { useIsMobile } from "@/hooks/useIsMobile";
import { useMaxResolution } from "@/hooks/useMaxResolution";
import {
headerHeight,
RESPONSIVE_BREAKPOINT_S,
screenContentMaxWidth,
} from "@/utils/style/layout";
import { headerHeight, RESPONSIVE_BREAKPOINT_S } from "@/utils/style/layout";

export const MapFeed: FC<{
consultedPostId?: string;
}> = ({ consultedPostId }) => {
const { height: windowHeight, width: windowWidth } = useWindowDimensions();
const { width, height } = useMaxResolution();
const { width, height } = useMaxResolution({ isLarge: true });
const isMobile = useIsMobile();

return (
Expand All @@ -29,7 +25,6 @@ export const MapFeed: FC<{
style={{
height: windowHeight - (headerHeight + 110),
width: windowWidth < RESPONSIVE_BREAKPOINT_S ? windowWidth : width,
maxWidth: screenContentMaxWidth,
}}
consultedPostId={consultedPostId}
/>
Expand Down
8 changes: 2 additions & 6 deletions packages/screens/Feed/components/MusicFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ import { FeedMusicList } from "@/components/music/FeedMusicList";
import { useIsMobile } from "@/hooks/useIsMobile";
import { useMaxResolution } from "@/hooks/useMaxResolution";
import { useSelectedNetworkId } from "@/hooks/useSelectedNetwork";
import {
RESPONSIVE_BREAKPOINT_S,
screenContentMaxWidth,
} from "@/utils/style/layout";
import { RESPONSIVE_BREAKPOINT_S } from "@/utils/style/layout";

export const MusicFeed: FC = () => {
const { width: windowWidth } = useWindowDimensions();
const { width, height } = useMaxResolution();
const { width, height } = useMaxResolution({ isLarge: true });
const isMobile = useIsMobile();
const selectedNetworkId = useSelectedNetworkId();
return (
Expand All @@ -30,7 +27,6 @@ export const MusicFeed: FC = () => {
style={{
alignSelf: "center",
width: windowWidth < RESPONSIVE_BREAKPOINT_S ? windowWidth : width,
maxWidth: screenContentMaxWidth,
}}
/>
</ScrollView>
Expand Down
8 changes: 2 additions & 6 deletions packages/screens/Feed/components/VideosFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ import { FeedVideosList } from "@/components/video/FeedVideosList";
import { useIsMobile } from "@/hooks/useIsMobile";
import { useMaxResolution } from "@/hooks/useMaxResolution";
import { useSelectedNetworkId } from "@/hooks/useSelectedNetwork";
import {
RESPONSIVE_BREAKPOINT_S,
screenContentMaxWidth,
} from "@/utils/style/layout";
import { RESPONSIVE_BREAKPOINT_S } from "@/utils/style/layout";
import { PostCategory } from "@/utils/types/feed";

export const VideosFeed: FC = () => {
const { width: windowWidth } = useWindowDimensions();
const { width, height } = useMaxResolution();
const { width, height } = useMaxResolution({ isLarge: true });
const isMobile = useIsMobile();
const selectedNetworkId = useSelectedNetworkId();

Expand Down Expand Up @@ -50,7 +47,6 @@ export const VideosFeed: FC = () => {
style={{
alignSelf: "center",
width: windowWidth < RESPONSIVE_BREAKPOINT_S ? windowWidth : width,
maxWidth: screenContentMaxWidth,
}}
/>
</ScrollView>
Expand Down

0 comments on commit 0088374

Please sign in to comment.