summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/gallery/index.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-05-14 10:21:56 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-05-14 10:21:56 +0900
commit8c97c54cfacd201e480dffb73db3fd0124532edb (patch)
tree676460f2318867865237f3ce11defd23afe72228 /packages/frontend/src/pages/gallery/index.vue
parent:art: (diff)
downloadmisskey-8c97c54cfacd201e480dffb73db3fd0124532edb.tar.gz
misskey-8c97c54cfacd201e480dffb73db3fd0124532edb.tar.bz2
misskey-8c97c54cfacd201e480dffb73db3fd0124532edb.zip
refactor(frontend): use css modules
Diffstat (limited to 'packages/frontend/src/pages/gallery/index.vue')
-rw-r--r--packages/frontend/src/pages/gallery/index.vue16
1 files changed, 6 insertions, 10 deletions
diff --git a/packages/frontend/src/pages/gallery/index.vue b/packages/frontend/src/pages/gallery/index.vue
index fc9cc7ae9e..3855a6d9d8 100644
--- a/packages/frontend/src/pages/gallery/index.vue
+++ b/packages/frontend/src/pages/gallery/index.vue
@@ -7,7 +7,7 @@
<MkFoldableSection class="_margin">
<template #header><i class="ti ti-clock"></i>{{ i18n.ts.recentPosts }}</template>
<MkPagination v-slot="{items}" :pagination="recentPostsPagination" :disable-auto-load="true">
- <div class="vfpdbgtk">
+ <div :class="$style.items">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
</div>
</MkPagination>
@@ -15,7 +15,7 @@
<MkFoldableSection class="_margin">
<template #header><i class="ti ti-comet"></i>{{ i18n.ts.popularPosts }}</template>
<MkPagination v-slot="{items}" :pagination="popularPostsPagination" :disable-auto-load="true">
- <div class="vfpdbgtk">
+ <div :class="$style.items">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
</div>
</MkPagination>
@@ -23,7 +23,7 @@
</div>
<div v-else-if="tab === 'liked'">
<MkPagination v-slot="{items}" :pagination="likedPostsPagination">
- <div class="vfpdbgtk">
+ <div :class="$style.items">
<MkGalleryPostPreview v-for="like in items" :key="like.id" :post="like.post" class="post"/>
</div>
</MkPagination>
@@ -31,7 +31,7 @@
<div v-else-if="tab === 'my'">
<MkA to="/gallery/new" class="_link" style="margin: 16px;"><i class="ti ti-plus"></i> {{ i18n.ts.postToGallery }}</MkA>
<MkPagination v-slot="{items}" :pagination="myPostsPagination">
- <div class="vfpdbgtk">
+ <div :class="$style.items">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
</div>
</MkPagination>
@@ -119,15 +119,11 @@ definePageMetadata({
});
</script>
-<style lang="scss" scoped>
-.vfpdbgtk {
+<style lang="scss" module>
+.items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
grid-gap: 12px;
margin: 0 var(--margin);
-
- > .post {
-
- }
}
</style>