Prevent manga page FAB from changing position when selecting chapters (#300)

When selecting chapters the FAB button slightly moved further up and to the left.
This happened because "em" was used for the positioning and the "SelectionFAB" being inside a "Box" component while the "Start/ResumeFAB" had "no extra" parent component.
This commit is contained in:
schroda
2023-05-15 18:36:16 +02:00
committed by GitHub
parent 0a0d902bd2
commit 14ac872876

View File

@@ -4,8 +4,8 @@ import { styled } from '@mui/system';
export const DEFAULT_FAB_STYLE = {
position: 'fixed',
height: '48px',
right: '3em',
bottom: '2em',
right: '48px',
bottom: '28px',
} as const;
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;