Skip to content

Commit

Permalink
fix: Filters alert width (#24801)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Jul 26, 2023
1 parent 7750517 commit 4b1f1d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ import {
import DividerConfigForm from './DividerConfigForm';

const MODAL_MARGIN = 16;
const MIN_WIDTH = 880;

const StyledModalWrapper = styled(StyledModal)<{ expanded: boolean }>`
min-width: 880px;
width: ${({ expanded }) => (expanded ? '100%' : '70%')} !important;
min-width: ${MIN_WIDTH}px;
width: ${({ expanded }) => (expanded ? '100%' : MIN_WIDTH)} !important;
@media (max-width: ${880 + MODAL_MARGIN * 2}px) {
@media (max-width: ${MIN_WIDTH + MODAL_MARGIN * 2}px) {
width: 100% !important;
min-width: auto;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function CancelConfirmationAlert({
message={title}
css={{
textAlign: 'left',
flex: 1,
'& .ant-alert-action': { alignSelf: 'center' },
}}
description={children}
Expand Down

0 comments on commit 4b1f1d4

Please sign in to comment.