Skip to content

Commit

Permalink
Fix jump button scroll padding (aeharding#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding authored Apr 30, 2024
1 parent b1ec6e6 commit 67f2896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/features/post/detail/PostDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ export default function PostDetail({
);

const bottomPadding: number = (() => {
if (!viewAllCommentsSpace) return 0;
if (commentPath) {
if (!viewAllCommentsSpace) return 0;

if (commentPath) return viewAllCommentsSpace + 12;
return viewAllCommentsSpace + 12;
}

if (
showJumpButton &&
Expand Down

0 comments on commit 67f2896

Please sign in to comment.