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

This commit is contained in:
Ryan Cohen
2023-01-24 19:30:38 +09:00
committed by GitHub
parent 3db010b9ea
commit 5d1c6f7065
4 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -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>
);
};

View File

@@ -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>
);
};

View File

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