From f3097a67c361b4635d9f785f9fc04e2b30a73860 Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Mon, 15 Feb 2021 18:49:59 +0530 Subject: [PATCH] Update collection selector modal --- src/pages/_app.tsx | 6 +-- .../gallery/components/AddCollection.tsx | 7 ++-- .../gallery/components/CollectionSelector.tsx | 41 ++++++++++--------- src/utils/strings/englishConstants.tsx | 3 +- 4 files changed, 31 insertions(+), 26 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 2795e77f5..755586a01 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -82,7 +82,7 @@ const GlobalStyles = createGlobalStyle` } .modal-90w{ width:90vw; - max-width:880px!important; + max-width:960px!important; } .modal .modal-header, .modal .modal-footer { border-color: #444 !important; @@ -92,7 +92,7 @@ const GlobalStyles = createGlobalStyle` text-shadow: none; } .modal .card { - background-color: #303030; + background-color: #202020; border: none; color: #aaa; } @@ -102,7 +102,7 @@ const GlobalStyles = createGlobalStyle` margin: 0 0 5px 0; } .modal-content { - background-color:#303030 !important; + background-color:#202020 !important; color:#aaa; } .btn-primary { diff --git a/src/pages/gallery/components/AddCollection.tsx b/src/pages/gallery/components/AddCollection.tsx index 535b62a07..8a3c016fc 100644 --- a/src/pages/gallery/components/AddCollection.tsx +++ b/src/pages/gallery/components/AddCollection.tsx @@ -3,6 +3,7 @@ import { Card } from 'react-bootstrap'; import styled from 'styled-components'; import CreateCollection from './CreateCollection'; import DropzoneWrapper from './DropzoneWrapper'; +import constants from 'utils/strings/constants'; const ImageContainer = styled.div` min-height: 192px; @@ -32,12 +33,12 @@ export default function AddCollection(props) { + - Create New Album + {constants.CREATE_COLLECTION} ); return ( - <> +
setCreateCollectionView(false)} acceptedFiles={acceptedFiles} /> - +
); } diff --git a/src/pages/gallery/components/CollectionSelector.tsx b/src/pages/gallery/components/CollectionSelector.tsx index 18f9ee4f1..ebf3c5c54 100644 --- a/src/pages/gallery/components/CollectionSelector.tsx +++ b/src/pages/gallery/components/CollectionSelector.tsx @@ -15,24 +15,26 @@ function CollectionSelector(props) { } = props; const CollectionIcons = collectionAndItsLatestFile?.map((item) => ( - - - {}} - forcedEnable - /> - - {item.collection.name} - - - +
+ + + { }} + forcedEnable + /> + + {item.collection.name} + + + +
)); return ( @@ -40,9 +42,10 @@ function CollectionSelector(props) { show={uploadModalView} onHide={closeUploadModal} dialogClassName="modal-90w" + style={{ maxWidth: '100%' }} > - {constants.SELECT_COLLECTION} + {constants.SELECT_COLLECTION}