feat(ui): update search component and improve responsive design

- Show only search icon on mobile (< 768px) in navbar
- Refactor Anchor component with better type safety and link handling
- Adjust spacing in Table of Contents and main content
- Improve responsive layout and consistency
This commit is contained in:
Wildan Nursahidan
2025-05-26 11:06:58 +07:00
parent 49d59e0476
commit bd400695ff
6 changed files with 76 additions and 28 deletions

View File

@@ -87,7 +87,7 @@ export default function MobToc({ tocs }: MobTocProps) {
transition={{ duration: 0.2, ease: 'easeInOut' }}
>
<div className="w-full bg-background/95 backdrop-blur-sm border-b border-stone-200 dark:border-stone-800 shadow-sm">
<div className="md:px-8 px-4 py-2">
<div className="sm:px-8 px-4 py-2">
<Button
variant="ghost"
size="sm"