Skip to content

Commit

Permalink
fix: Responsive scaling of add/edit model dialog on viewport zoom.
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Feb 29, 2024
1 parent b5b9063 commit 13ea433
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/features/AddModel/AddModelDialog/AddModelDialog.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@ import styled from 'styled-components';
import { spacings } from '../../../tokens/spacings';

const StyledDialog = styled(Dialog)`
min-width: 600px;
overflow-y: scroll;
width: fit-content;
max-width: 90vw;
max-height: 90vh;
@media (min-width: 650px) {
min-width: 600px;
max-height: 90vh;
overflow-x: scroll;
}
`;

const StyledDialogCustomContent = styled(Dialog.CustomContent)`
Expand Down

0 comments on commit 13ea433

Please sign in to comment.