Skip to content

Commit

Permalink
fix: toast position, z index ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungjjeong committed Aug 26, 2024
1 parent 2160d23 commit 9444a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/atoms/dim/dim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Dim = {
* BottomSheet - dim: 500 / container: 550
* Modal - dim: 700 / container: 750
* Dialog - dim: 800 / container: 850
* Toast - container: 900
*/
export const Dim = ({ onClick, zIndex = 800 }: Dim) => {
return (
Expand Down
4 changes: 2 additions & 2 deletions components/atoms/toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ const Toast = ({
};

const containerStyle = css({
position: 'relative',
position: 'fixed',
backgroundColor: 'transparent',
zIndex: 900,
});

const toastWrapperStyle = flex({
Expand All @@ -71,7 +72,6 @@ const toastWrapperStyle = flex({
left: '50%',
transform: 'translateX(-50%)',
marginBottom: 'calc(35px + env(safe-area-inset-bottom))',
zIndex: 200,
});

const toastStyle = flex({
Expand Down

0 comments on commit 9444a64

Please sign in to comment.