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:
@@ -4,8 +4,8 @@ import { styled } from '@mui/system';
|
|||||||
export const DEFAULT_FAB_STYLE = {
|
export const DEFAULT_FAB_STYLE = {
|
||||||
position: 'fixed',
|
position: 'fixed',
|
||||||
height: '48px',
|
height: '48px',
|
||||||
right: '3em',
|
right: '48px',
|
||||||
bottom: '2em',
|
bottom: '28px',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;
|
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;
|
||||||
|
|||||||
Reference in New Issue
Block a user