Previous Post
- {prevPost?.data.title || 'Latest post!'}
@@ -33,14 +33,14 @@ const { prevPost, nextPost } = Astro.props
href={nextPost ? `/blog/${nextPost.slug}` : '#'}
class={cn(
buttonVariants({ variant: 'outline' }),
- 'rounded-xl group flex items-center justify-end w-1/2 h-fit',
+ 'rounded-xl group flex items-center justify-end w-full sm:w-1/2 h-fit',
!nextPost && 'pointer-events-none opacity-50 cursor-not-allowed',
)}
aria-disabled={!nextPost}
>
Next Post
- {nextPost?.data.title || 'Last post!'}
diff --git a/src/styles/global.css b/src/styles/global.css
index 390d77c..ffe7412 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -67,7 +67,7 @@
@layer components {
article {
- @apply prose-headings:scroll-mt-20;
+ @apply prose-headings:scroll-mt-20 prose-headings:break-words prose-p:break-words;
.katex-display {
@apply overflow-x-auto overflow-y-hidden py-4;