@@ -51,10 +51,6 @@ const BaseStandardReaderProgressBar = ({
|
||||
const isHidden = progressBarType === ProgressBarType.HIDDEN;
|
||||
const isMinimized = !isMaximized && !isDragging;
|
||||
|
||||
if (isHidden) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// the progress bar uses the reading direction to set the themes direction, thus, stuff has to be adjusted to still be correctly positioned
|
||||
// depending on which combination of theme direction and reading direction is currently active
|
||||
return (
|
||||
@@ -62,7 +58,12 @@ const BaseStandardReaderProgressBar = ({
|
||||
<ReaderProgressBar
|
||||
{...pagesState}
|
||||
progressBarPosition={progressBarPosition}
|
||||
createProgressBarSlot={(page, pageLoadStates, pagesIndex) => (
|
||||
createProgressBarSlot={(page, pageLoadStates, pagesIndex) => {
|
||||
if (isHidden && isMinimized) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ReaderProgressBarSlotDesktop
|
||||
pageName={page.name}
|
||||
pageUrl={page.primary.url}
|
||||
@@ -79,7 +80,8 @@ const BaseStandardReaderProgressBar = ({
|
||||
isLeadingPage={pagesIndex < currentPagesIndex}
|
||||
isDragging={isDragging}
|
||||
/>
|
||||
)}
|
||||
);
|
||||
}}
|
||||
slotProps={{
|
||||
container: {
|
||||
sx: {
|
||||
|
||||
Reference in New Issue
Block a user