aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2023-09-13 00:59:44 -0700
committerPinapelz <yukais@pinapelz.com>2023-09-13 00:59:44 -0700
commit52d6c7f229b846b98e58b99e02c663dd1a71d4dc (patch)
tree93aa0b57b547ad1d48529bb296f013a42241ec0e
parent236b2804d2868811d2acf72e48e52c7f43ab1c8e (diff)
Fix mobile project grid view
-rw-r--r--src/components/ProjectGrid.astro8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/ProjectGrid.astro b/src/components/ProjectGrid.astro
index 56302c9..e0817a9 100644
--- a/src/components/ProjectGrid.astro
+++ b/src/components/ProjectGrid.astro
@@ -1,7 +1,7 @@
<style>
.project-grid {
display: grid;
- grid-template-columns: repeat(3, 1fr);
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
@@ -41,6 +41,12 @@
img {
max-height: 100px;
}
+
+ @media (max-width: 768px) {
+ .project-grid {
+ grid-template-columns: repeat(1, 1fr);
+ }
+ }
</style>
<div class="project-grid">
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage