Skip to content

Commit

Permalink
revised mobile view for art gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiffany Chen authored and Tiffany Chen committed Dec 11, 2023
1 parent 70c664e commit d9ac6f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/gallery-card/gallery-card.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
justify-content: center;
align-items: center;
position: relative;
width: 450px;
width: 100%;/* Adjust to occupy available width */
max-width: 450px;/* Set a maximum width for larger screens */
border: none;

.gallery-image-container {
Expand All @@ -15,7 +16,7 @@
display: flex;
flex-direction: column;
align-items: center;
width: 90%;
width: 100%; /* Occupy available width */

img {
height: auto;
Expand All @@ -31,7 +32,7 @@
align-items: center;
height: auto;
font-size: 1.1rem;
padding: 10px 20px;
padding: 2% 5%;
span {
display: flex;
}
Expand All @@ -49,11 +50,11 @@

@media screen and (max-width: 768px) {
.gallery-card-container {
width: 100%;
max-width: 100%;/* Occupy full width */
justify-content: left;
}
.footer {
padding: 0;
padding: 1% 3%;/* Adjust padding for smaller screens */
span {
display: flex;
align-items: flex-start;
Expand Down

0 comments on commit d9ac6f0

Please sign in to comment.