Skip to content

Commit

Permalink
Prevent manga page FAB from changing position when selecting chapters (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
schroda authored May 15, 2023
1 parent 0a0d902 commit 14ac872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/util/StyledFab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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})`;
Expand Down

0 comments on commit 14ac872

Please sign in to comment.