Skip to content

Commit

Permalink
Closes #504
Browse files Browse the repository at this point in the history
- Changed Icon Wrapper to use media queries to adapt to the resolution and add a scroll
- Udated icon-modal to have a maximum height based on the viewport to remove the scroll on the modal.
  • Loading branch information
jsanzdev committed Dec 11, 2024
1 parent 5a6ba61 commit adfe7e1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,37 @@
flex-wrap: wrap;
background-color: white;
padding: var(--space-md);
overflow-y: auto;
max-height: 60vh; /* Use a percentage of the viewport height for dynamic adjustment */
width: 80%;
gap: var(--space-s);
border-radius: var(--border-radius-m);
}

@media (max-width: 1200px) {
.iconWrapper {
max-height: 50vh;
}
}

@media (max-width: 992px) {
.iconWrapper {
max-height: 40vh;
}
}

@media (max-width: 768px) {
.iconWrapper {
max-height: 30vh;
}
}

@media (max-width: 576px) {
.iconWrapper {
max-height: 20vh;
}
}

.icon {
width: var(--fs-xxl);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container {
background-color: var(--primary-700);
height: auto;
max-height: 70vh; /* This removes the scroll in lower resolutions. */
display: flex;
flex-direction: column;
align-items: center;
Expand Down

0 comments on commit adfe7e1

Please sign in to comment.