Skip to content

Commit

Permalink
🩹 Fixing grid styles for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
xxnickles committed Nov 21, 2024
1 parent 805085f commit 35fe0c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/AnimeFeedManager.Web/Features/Common/GridSection.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@GridControls
}

<section class="grid grid-cols-[repeat(auto-fit,minmax(550px,1fr))] gap-10 px-2 md:px-10 py-2 md:py-4">
<section class="grid grid-cols-[repeat(auto-fit,minmax(350px,1fr))] md:grid-cols-[repeat(auto-fit,minmax(550px,1fr))] gap-10 px-2 md:px-10 py-2 md:py-4">
@GridContent
</section>
</div>
Expand Down
46 changes: 6 additions & 40 deletions src/AnimeFeedManager.Web/wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4520,10 +4520,6 @@ html:has(.drawer-toggle:checked) {
flex-shrink: 0;
}

.basis-3\/4 {
flex-basis: 75%;
}

.basis-\[17\%\] {
flex-basis: 17%;
}
Expand All @@ -4540,28 +4536,12 @@ html:has(.drawer-toggle:checked) {
flex-basis: 85%;
}

.grid-flow-row {
grid-auto-flow: row;
}

.grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-12 {
grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-cols-\[repeat\(auto-fit\2c minmax\(500px\2c 1fr\)\)\] {
grid-template-columns: repeat(auto-fit,minmax(500px,1fr));
}

.grid-cols-\[repeat\(auto-fit\2c minmax\(450px\2c 1fr\)\)\] {
grid-template-columns: repeat(auto-fit,minmax(450px,1fr));
}

.grid-cols-\[repeat\(auto-fit\2c minmax\(550px\2c 1fr\)\)\] {
grid-template-columns: repeat(auto-fit,minmax(550px,1fr));
.grid-cols-\[repeat\(auto-fit\2c minmax\(350px\2c 1fr\)\)\] {
grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
}

.flex-col {
Expand Down Expand Up @@ -5087,6 +5067,10 @@ html:has(.drawer-toggle:checked) {
width: auto;
}

.md\:grid-cols-\[repeat\(auto-fit\2c minmax\(550px\2c 1fr\)\)\] {
grid-template-columns: repeat(auto-fit,minmax(550px,1fr));
}

.md\:flex-row {
flex-direction: row;
}
Expand Down Expand Up @@ -5120,12 +5104,6 @@ html:has(.drawer-toggle:checked) {
font-size: 1rem;
line-height: 1.5rem;
}

@media not all and (min-width: 1280px) {
.md\:max-xl\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
}

@media (min-width: 1024px) {
Expand All @@ -5150,20 +5128,8 @@ html:has(.drawer-toggle:checked) {
}
}

@media (min-width: 1280px) {
.xl\:grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (min-width: 1536px) {
.\32xl\:col-span-3 {
grid-column: span 3 / span 3;
}
}

@media (min-width: 2300px) {
.min-\[2300px\]\:grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

0 comments on commit 35fe0c1

Please sign in to comment.