fix(striker-ui): decompose dialog scroll box

main
Tsu-ba-me 1 year ago
parent a8f5170264
commit 414987ef3e
  1. 8
      striker-ui/components/Dialog/DialogScrollBox.tsx
  2. 8
      striker-ui/components/ScrollBox.tsx

@ -1,9 +1,9 @@
import { Box as MuiBox, styled } from '@mui/material'; import { styled } from '@mui/material';
const DialogScrollBox = styled(MuiBox)({ import ScrollBox from '../ScrollBox';
const DialogScrollBox = styled(ScrollBox)({
maxHeight: '60vh', maxHeight: '60vh',
overflowY: 'scroll',
paddingRight: '.4em',
}); });
export default DialogScrollBox; export default DialogScrollBox;

@ -0,0 +1,8 @@
import { Box as MuiBox, styled } from '@mui/material';
const ScrollBox = styled(MuiBox)({
overflowY: 'scroll',
paddingRight: '.4em',
});
export default ScrollBox;
Loading…
Cancel
Save