fix: create shared class to add bottom spacing (#3269)

pull/3271/head
Ryan Cohen 2 years ago committed by GitHub
parent 3db010b9ea
commit 5d1c6f7065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -667,7 +667,7 @@ const IssueDetails = () => {
</div> </div>
</div> </div>
</div> </div>
<div className="h-16 sm:h-0" /> <div className="extra-bottom-space" />
</div> </div>
); );
}; };

@ -834,7 +834,7 @@ const MovieDetails = ({ movie }: MovieDetailsProps) => {
linkUrl={`/movie/${data.id}/similar`} linkUrl={`/movie/${data.id}/similar`}
hideWhenEmpty hideWhenEmpty
/> />
<div className="relative h-32 sm:h-8" /> <div className="extra-bottom-space relative" />
</div> </div>
); );
}; };

@ -1016,7 +1016,7 @@ const TvDetails = ({ tv }: TvDetailsProps) => {
linkUrl={`/tv/${data.id}/similar`} linkUrl={`/tv/${data.id}/similar`}
hideWhenEmpty hideWhenEmpty
/> />
<div className="relative h-32 sm:h-8" /> <div className="extra-bottom-space relative" />
</div> </div>
); );
}; };

@ -507,6 +507,10 @@
@apply hidden; @apply hidden;
} }
} }
.extra-bottom-space {
height: calc(4rem + env(safe-area-inset-bottom));
}
} }
.ptr--ptr { .ptr--ptr {

Loading…
Cancel
Save