Skip to content

Commit

Permalink
fix modal width
Browse files Browse the repository at this point in the history
danieleguido committed Jan 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1fa6683 commit 9bce311
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Hero/ui/ModalCreateNew.jsx
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ export const ModalCreate = ({ withCarousel = false }) => {
<div className="hero__modal__carousel">
<StoryItem story={currentStory} reduced />
</div>
<div className="Form w-100 mt-3" style={{ textAlign: 'start', maxWidth: 500 }}>
<div className="Form w-100 mt-3" style={{ textAlign: 'start' }}>
{withCarousel ? (
<div className="hero__modal__carousel mx-3 ">
<ModalCarousel options={[0, 1, 2, 3, 4]} setOption={setSelectedColor}>
11 changes: 8 additions & 3 deletions src/components/Hero/ui/styles/modal.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.hero__modal {
position: absolute;
bottom: 5.5rem;
width: 50%;
left: 25%;

background: var(--linen-500, #fcede2);
border-radius: 1rem;
padding: 1rem;
@@ -18,6 +15,14 @@
z-index: 120;
}

@media (min-width: 992px) {
.hero__modal {
width: 600px;
left: 50%;
margin-left: -300px;
}
}

.hero__modal p {
padding: 0;
line-height: 1rem;

0 comments on commit 9bce311

Please sign in to comment.