Skip to content

Commit

Permalink
fix: modal styles (decentraland#1856)
Browse files Browse the repository at this point in the history
* fix: modal styles

* fix: linter
  • Loading branch information
flobarreto authored Jun 21, 2023
1 parent 132fca5 commit 0ed0b8c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,41 @@
.modalDescription {
text-align: center;
}

.launchModal:global(.ui.modal .actions > .button:first-child) {
.ListsLaunchModal:global(.ui.modal .actions > .button:first-child) {
width: 80%;
align-self: center;
}

.launchModal:global(.ui.modal .actions .ui.button + .ui.button) {
.ListsLaunchModal:global(.ui.modal .actions .ui.button + .ui.button) {
margin: unset;
width: 80%;
align-self: center;
color: white;
border-color: white;
}

.launchModal:global(.ui.modal > .content) {
.ListsLaunchModal:global(.ui.modal > .content) {
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
margin-bottom: 50px;
}

.launchModal:global(.ui.medium.image).listsLogo {
.listsLogo {
background-image: url('../../../images/empty-list.svg');
background-repeat: no-repeat;
background-size: cover;
width: 80px;
height: 80px;
}

@media (max-width: 768px) {
.actions {
gap: unset;
}

.ListsLaunchModal:global(.ui.modal .actions > .button:first-child),
.ListsLaunchModal:global(.ui.modal .actions .ui.button + .ui.button) {
width: 100%;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useCallback, useEffect, useState } from 'react'
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
import { Modal, Button, ModalNavigation } from 'decentraland-ui'
import classNames from 'classnames'
import { Link } from 'react-router-dom'
import * as decentraland from '../../../modules/vendor/decentraland'
import { AssetType } from '../../../modules/asset/types'
Expand Down Expand Up @@ -40,15 +39,15 @@ export const ListsLaunchModal = ({

return (
<Modal
className={styles.launchModal}
className={styles.ListsLaunchModal}
open={isOpen}
size={'small'}
onClose={onClose}
dimmer={{ className: styles.dimmerRemover }}
>
<ModalNavigation title={t('lists_ftu.title')} onClose={onClose} />
<Modal.Content className={styles.content}>
<div className={classNames(styles.listsLogo, 'ui medium image')}></div>
<div className={styles.listsLogo}></div>
<Modal.Description>
<div className={styles.modalDescription}>
{t('lists_ftu.description', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,7 @@
flex-direction: column-reverse;
gap: 10px;
}

.actions :global(.ui.button + .ui.button) {
margin: 0px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ const SaveToListModal = (props: Props) => {
</Modal.Content>
<Modal.Actions className={styles.actions}>
<Button
fluid
secondary
disabled={isLoadingLists || isSavingPicks}
data-testid={CREATE_LIST_BUTTON_DATA_TEST_ID}
Expand All @@ -303,6 +304,7 @@ const SaveToListModal = (props: Props) => {
{t('save_to_list_modal.create_list')}
</Button>
<Button
fluid
primary
disabled={isLoadingLists || isSavingPicks || hasChanges}
data-testid={SAVE_BUTTON_DATA_TEST_ID}
Expand Down

0 comments on commit 0ed0b8c

Please sign in to comment.