forked from akai/readest
fix(layout): fixed page navigation buttons have higher z-index than TTS control button (#3184)
This commit is contained in:
@@ -64,12 +64,10 @@ const PageNavigationButtons: React.FC<PageNavigationButtonsProps> = ({
|
||||
<button
|
||||
onClick={handleGoLeftPage}
|
||||
className={clsx(
|
||||
'absolute left-2 z-10 -translate-y-1/2',
|
||||
'flex items-center justify-center',
|
||||
'absolute left-2 -translate-y-1/2',
|
||||
'flex h-20 w-20 items-center justify-center',
|
||||
'transition-opacity duration-300 focus:outline-none',
|
||||
isPageNavigationButtonsVisible
|
||||
? 'top-1/2 h-20 w-20 opacity-100'
|
||||
: 'bottom-12 h-10 w-10 opacity-0',
|
||||
isPageNavigationButtonsVisible ? 'top-1/2 opacity-100' : 'bottom-12 opacity-0',
|
||||
)}
|
||||
aria-label={getLeftPageLabel()}
|
||||
tabIndex={0}
|
||||
@@ -89,12 +87,10 @@ const PageNavigationButtons: React.FC<PageNavigationButtonsProps> = ({
|
||||
<button
|
||||
onClick={handleGoRightPage}
|
||||
className={clsx(
|
||||
'absolute right-2 z-10 -translate-y-1/2',
|
||||
'flex items-center justify-center',
|
||||
'absolute right-2 -translate-y-1/2',
|
||||
'flex h-20 w-20 items-center justify-center',
|
||||
'transition-opacity duration-300 focus:outline-none',
|
||||
isPageNavigationButtonsVisible
|
||||
? 'top-1/2 h-20 w-20 opacity-100'
|
||||
: 'bottom-12 h-10 w-10 opacity-0',
|
||||
isPageNavigationButtonsVisible ? 'top-1/2 opacity-100' : 'bottom-12 opacity-0',
|
||||
)}
|
||||
aria-label={getRightPageLabel()}
|
||||
tabIndex={0}
|
||||
|
||||
Reference in New Issue
Block a user