tangled
alpha
login
or
join now
finxol.io
/
blog
0
fork
atom
Personal blog
finxol.io
blog
0
fork
atom
overview
issues
pulls
pipelines
feat: introduce grid-lanes to posts list when supported
finxol.io
1 month ago
77c2710c
d3d78341
verified
This commit was signed with the committer's
known signature
.
finxol.io
SSH Key Fingerprint:
SHA256:olFE3asYdoBMScuJOt60UxXdJ0RFdGv5kVKrdOtIcPI=
1/1
deploy.yaml
success
57s
+16
-1
1 changed file
expand all
collapse all
unified
split
app
components
page-elements
PostsList.vue
+16
-1
app/components/page-elements/PostsList.vue
···
70
70
:post="filteredPosts[0]"
71
71
/>
72
72
73
73
-
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4 mt-4 mb-8">
73
73
+
<div class="posts gap-4 mt-4 mb-8">
74
74
<PostPreview
75
75
v-for="post in filteredPosts?.slice(1)"
76
76
:key="post.path"
···
78
78
/>
79
79
</div>
80
80
</template>
81
81
+
82
82
+
<style scoped>
83
83
+
.posts {
84
84
+
--number-cols: 1;
85
85
+
86
86
+
display: grid;
87
87
+
display: grid-lanes;
88
88
+
grid-template-columns: repeat(var(--number-cols), minmax(0, 1fr));
89
89
+
gap: 1lh;
90
90
+
91
91
+
@media (min-width: 1024px) {
92
92
+
--number-cols: 2;
93
93
+
}
94
94
+
}
95
95
+
</style>