Logo
Explore Help
Sign In
ChoChoX/suwayomi-material-you-webui
1
0
Fork 0
You've already forked suwayomi-material-you-webui
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
13dbb8faf4f3353cc342c91cbebb557d83ebf2ab
suwayomi-material-you-webui/src/components/util/StyledFab.tsx

18 lines
416 B
TypeScript
Raw Normal View History

Fix/manga screen prevent fab from overlaying last chapter in list (#298) * Introduce "StyledFAb" MUI "Fab" with the "default" styling applied * Prevent FAB from overlaying last chapter in list of Manga details page
2023-05-15 18:23:26 +02:00
import { Fab } from '@mui/material';
import { styled } from '@mui/system';
export const DEFAULT_FAB_STYLE = {
position: 'fixed',
height: '48px',
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.
2023-05-15 18:36:16 +02:00
right: '48px',
bottom: '28px',
Fix/manga screen prevent fab from overlaying last chapter in list (#298) * Introduce "StyledFAb" MUI "Fab" with the "default" styling applied * Prevent FAB from overlaying last chapter in list of Manga details page
2023-05-15 18:23:26 +02:00
} as const;
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;
const StyledFab = styled(Fab)({
...DEFAULT_FAB_STYLE,
}) as typeof Fab;
export default StyledFab;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 36ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API 粤ICP备2026019702号 粤公网安备44538102000129号