Skip to content

Commit

Permalink
Merge pull request #131 from cuculus-dev/feature/fix-profile-edit-modal
Browse files Browse the repository at this point in the history
プロフィールを編集モーダルのスタイル調整
  • Loading branch information
takecchi authored Dec 20, 2023
2 parents cf1c08f + 12727ad commit 6aaa443
Showing 1 changed file with 11 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ const HEADER_HEIGHT = '50px';
const SLIDER_HEIGHT = '50px';

const Dialog = styled(MuiDialog)`
top: env(safe-area-inset-top, 0);
.MuiDialog-paper {
width: 100vw;
max-height: 100vh;
margin: 0;
max-width: 100vw;
max-height: calc(
100vh - env(safe-area-inset-bottom, 0) - env(safe-area-inset-top, 0)
);
${({ theme }) => theme.breakpoints.up('tablet')} {
max-width: 598px;
}
${({ theme }) => theme.breakpoints.down('tablet')} {
border-radius: 0;
height: 100vh;
}
}
`;
Expand All @@ -49,11 +50,6 @@ const Container = styled('div')`
display: flex;
flex-direction: column;
text-align: center;
${({ theme }) => theme.breakpoints.down('tablet')} {
width: 100vw;
height: 100vh;
}
`;

const Header = styled('div')`
Expand All @@ -69,11 +65,6 @@ const Header = styled('div')`
gap: 12px;
`;

const Content = styled('div')`
max-width: 598px;
width: 100vw;
`;

const SliderContainer = styled('div')`
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -165,7 +156,7 @@ function ProfileImageCrop({
適用
</CapsuleButton>
</Header>
<Content>
<div>
{/* TODO ここでCrop出来るようにする */}
<CropContainer>
<Cropper
Expand Down Expand Up @@ -198,7 +189,7 @@ function ProfileImageCrop({
/>
<ZoomIn />
</SliderContainer>
</Content>
</div>
</Container>
</Dialog>
);
Expand Down Expand Up @@ -299,7 +290,7 @@ export default function ProfileSettingModal({
保存
</CapsuleLoadingButton>
</Header>
<Content>
<div>
<HeaderImage />
<div style={{ padding: '12px 16px 16px' }}>
<HFlex>
Expand Down Expand Up @@ -355,7 +346,7 @@ export default function ProfileSettingModal({
/>
</VFlex>
</div>
</Content>
</div>
</Container>
</Dialog>

Expand Down

0 comments on commit 6aaa443

Please sign in to comment.