Skip to content

Commit

Permalink
some mobile view optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
bjesus committed Dec 1, 2024
1 parent d96b83a commit 9fe5175
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/BooksList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: 1rem;
justify-items: center;
}
button {
Expand Down
10 changes: 8 additions & 2 deletions components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ header {
grid-area: 1 / 1 / 2 / 2;
display: grid;
grid-template-columns: auto auto;
grid-template-rows: 1fr 1fr auto;
grid-template-rows: 1fr auto;
grid-column-gap: 0px;
grid-row-gap: 0px;
grid-template-areas:
Expand All @@ -63,7 +63,7 @@ header {
@media (min-width: 600px) {
grid-template-columns: 1fr 45rem 1fr;
grid-template-rows: 1fr auto;
grid-template-rows: 1fr;
grid-template-areas: "logo search options";
}
Expand All @@ -76,6 +76,12 @@ header {
svg {
margin-left: 1rem;
cursor: pointer;
width: 1rem;
height: 1rem;
@media (min-width: 600px) {
width: auto;
height: auto;
}
}
button {
Expand Down

0 comments on commit 9fe5175

Please sign in to comment.