Skip to content

Commit

Permalink
fix: create shared class to add bottom spacing (#3269)
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Jan 24, 2023
1 parent 3db010b commit 5d1c6f7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/IssueDetails/index.tsx
Expand Up @@ -667,7 +667,7 @@ const IssueDetails = () => {
</div>
</div>
</div>
<div className="h-16 sm:h-0" />
<div className="extra-bottom-space" />
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/MovieDetails/index.tsx
Expand Up @@ -834,7 +834,7 @@ const MovieDetails = ({ movie }: MovieDetailsProps) => {
linkUrl={`/movie/${data.id}/similar`}
hideWhenEmpty
/>
<div className="relative h-32 sm:h-8" />
<div className="extra-bottom-space relative" />
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/TvDetails/index.tsx
Expand Up @@ -1016,7 +1016,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
linkUrl={`/tv/${data.id}/similar`}
hideWhenEmpty
/>
<div className="relative h-32 sm:h-8" />
<div className="extra-bottom-space relative" />
</div>
);
};
Expand Down
4 changes: 4 additions & 0 deletions src/styles/globals.css
Expand Up @@ -507,6 +507,10 @@
@apply hidden;
}
}

.extra-bottom-space {
height: calc(4rem + env(safe-area-inset-bottom));
}
}

.ptr--ptr {
Expand Down

0 comments on commit 5d1c6f7

Please sign in to comment.