Skip to content

Commit

Permalink
New: XXL modal size
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Mar 8, 2024
1 parent 3df140b commit 0d76fbc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Album/Search/AlbumInteractiveSearchModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function AlbumInteractiveSearchModal(props) {
return (
<Modal
isOpen={isOpen}
size={sizes.EXTRA_LARGE}
size={sizes.EXTRA_EXTRA_LARGE}
closeOnBackgroundClick={false}
onModalClose={onModalClose}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Artist/Search/ArtistInteractiveSearchModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function ArtistInteractiveSearchModal(props) {
return (
<Modal
isOpen={isOpen}
size={sizes.EXTRA_LARGE}
size={sizes.EXTRA_EXTRA_LARGE}
closeOnBackgroundClick={false}
onModalClose={onModalClose}
>
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/Components/Modal/Modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@
width: 1280px;
}


.extraExtraLarge {
composes: modal;

width: 1600px;
}

@media only screen and (max-width: $breakpointExtraLarge) {
.modal.extraLarge {
width: 90%;
Expand Down Expand Up @@ -90,7 +97,8 @@
.modal.small,
.modal.medium,
.modal.large,
.modal.extraLarge {
.modal.extraLarge,
.modal.extraExtraLarge {
max-height: 100%;
width: 100%;
height: 100% !important;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/Components/Modal/Modal.css.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is automatically generated.
// Please do not change this file!
interface CssExports {
'extraExtraLarge': string;
'extraLarge': string;
'large': string;
'medium': string;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Helpers/Props/sizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export const SMALL = 'small';
export const MEDIUM = 'medium';
export const LARGE = 'large';
export const EXTRA_LARGE = 'extraLarge';

export const all = [EXTRA_SMALL, SMALL, MEDIUM, LARGE, EXTRA_LARGE];
export const EXTRA_EXTRA_LARGE = 'extraExtraLarge';
export const all = [EXTRA_SMALL, SMALL, MEDIUM, LARGE, EXTRA_LARGE, EXTRA_EXTRA_LARGE];
2 changes: 1 addition & 1 deletion frontend/src/InteractiveImport/InteractiveImportModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InteractiveImportModal extends Component {
return (
<Modal
isOpen={isOpen}
size={sizes.EXTRA_LARGE}
size={sizes.EXTRA_EXTRA_LARGE}
closeOnBackgroundClick={false}
onModalClose={onModalClose}
>
Expand Down

0 comments on commit 0d76fbc

Please sign in to comment.