aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PostNavigation.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/PostNavigation.astro')
-rw-r--r--src/components/PostNavigation.astro6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/PostNavigation.astro b/src/components/PostNavigation.astro
index bca228a..2e8b93e 100644
--- a/src/components/PostNavigation.astro
+++ b/src/components/PostNavigation.astro
@@ -19,7 +19,8 @@ const isSubpost = !!parentPost
class={cn(
buttonVariants({ variant: 'outline' }),
'rounded-lg group flex items-center justify-start size-full',
- !olderPost && 'pointer-events-none opacity-0 cursor-not-allowed',
+ !olderPost &&
+ 'pointer-events-none opacity-0 invisible cursor-not-allowed',
)}
aria-disabled={!olderPost}
>
@@ -71,7 +72,8 @@ const isSubpost = !!parentPost
class={cn(
buttonVariants({ variant: 'outline' }),
'rounded-lg group flex items-center justify-end size-full',
- !newerPost && 'pointer-events-none opacity-0 cursor-not-allowed',
+ !newerPost &&
+ 'pointer-events-none opacity-0 invisible cursor-not-allowed',
)}
aria-disabled={!newerPost}
>