fix: no background color for section and page info in vertical scroll mode (#694)

This commit is contained in:
Huang Xin
2025-03-24 14:13:38 +08:00
committed by GitHub
parent 03f0ee1f7d
commit 07c9813ec1
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ const PageInfoView: React.FC<PageInfoProps> = ({
className={clsx(
'pageinfo absolute bottom-0 flex items-center justify-end',
isVertical ? 'writing-vertical-rl' : 'h-12 w-full',
isScrolled && 'bg-base-100',
isScrolled && !isVertical && 'bg-base-100',
)}
style={
isVertical
@@ -23,7 +23,7 @@ const SectionInfo: React.FC<SectionInfoProps> = ({
className={clsx(
'sectioninfo absolute flex items-center overflow-hidden',
isVertical ? 'writing-vertical-rl max-h-[85%]' : 'top-0 h-[44px]',
isScrolled && 'bg-base-100',
isScrolled && !isVertical && 'bg-base-100',
)}
style={
isVertical