fix(layout): float the annotation navigation bar, closes #3386 (#3387)

This commit is contained in:
Huang Xin
2026-02-26 13:56:29 +08:00
committed by GitHub
parent 80105af839
commit 68d4538d40
2 changed files with 13 additions and 6 deletions
@@ -59,7 +59,7 @@ const ContentNavBar: React.FC<ContentNavBarProps> = ({
return (
<div
className='results-nav-bar pointer-events-none absolute inset-0 z-30 flex flex-col items-center justify-end'
className='results-nav-bar pointer-events-none absolute inset-0 z-10 flex flex-col items-center justify-end'
style={{
top: gridInsets.top,
right: gridInsets.right,
@@ -67,7 +67,7 @@ const ContentNavBar: React.FC<ContentNavBarProps> = ({
left: gridInsets.left,
}}
>
<div className='bg-base-100 mx-auto flex w-full items-center justify-center px-4'>
<div className='mx-auto flex items-center justify-center px-4'>
{/* Bottom bar: Navigation buttons and Info */}
<div className='pointer-events-auto flex h-[52px] max-w-3xl items-center gap-2'>
{/* Previous button */}
@@ -78,10 +78,12 @@ const ContentNavBar: React.FC<ContentNavBarProps> = ({
className={clsx(
'flex h-10 w-10 items-center justify-center rounded-full shadow-lg transition-all disabled:opacity-40',
'bg-base-200 hover:bg-base-300 hover:disabled:bg-base-200',
!hasPrevious && 'opacity-40',
)}
>
<MdChevronLeft size={iconSize20} className='text-base-content' />
<MdChevronLeft
size={iconSize20}
className={clsx('text-base-content', !hasPrevious && 'opacity-40')}
/>
</button>
{/* Info bar */}
@@ -129,10 +131,12 @@ const ContentNavBar: React.FC<ContentNavBarProps> = ({
className={clsx(
'flex h-10 w-10 items-center justify-center rounded-full shadow-lg transition-all',
'bg-base-200 hover:bg-base-300 hover:disabled:bg-base-200',
!hasNext && 'opacity-40',
)}
>
<MdChevronRight size={iconSize20} className='text-base-content' />
<MdChevronRight
size={iconSize20}
className={clsx('text-base-content', !hasNext && 'opacity-40')}
/>
</button>
</div>
</div>
+3
View File
@@ -148,6 +148,9 @@ const getColorStyles = (
background-color: var(--theme-bg-color, transparent);
background: var(--background-set, none);
}
body {
${isEink ? `background-color: ${bg} !important;` : ''}
}
section, aside, blockquote, article, nav, header, footer, main, figure,
div, p, font, h1, h2, h3, h4, h5, h6, li, span {
${overrideColor ? `background-color: ${bg} !important;` : ''}