summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/pages')
-rw-r--r--packages/frontend/src/pages/gallery/post.vue3
-rw-r--r--packages/frontend/src/pages/page.vue3
-rw-r--r--packages/frontend/src/pages/user/index.activity.vue7
-rw-r--r--packages/frontend/src/pages/user/index.photos.vue49
4 files changed, 31 insertions, 31 deletions
diff --git a/packages/frontend/src/pages/gallery/post.vue b/packages/frontend/src/pages/gallery/post.vue
index 30f63cf3aa..1ea9a72588 100644
--- a/packages/frontend/src/pages/gallery/post.vue
+++ b/packages/frontend/src/pages/gallery/post.vue
@@ -38,7 +38,8 @@
</div>
<MkAd :prefer="['horizontal', 'horizontal-big']"/>
<MkContainer :max-height="300" :foldable="true" class="other">
- <template #header><i class="ti ti-clock"></i> {{ i18n.ts.recentPosts }}</template>
+ <template #icon><i class="ti ti-clock"></i></template>
+ <template #header>{{ i18n.ts.recentPosts }}</template>
<MkPagination v-slot="{items}" :pagination="otherPostsPagination">
<div class="sdrarzaf">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
diff --git a/packages/frontend/src/pages/page.vue b/packages/frontend/src/pages/page.vue
index 7f0871a5fb..ffb198ea1a 100644
--- a/packages/frontend/src/pages/page.vue
+++ b/packages/frontend/src/pages/page.vue
@@ -49,7 +49,8 @@
</div>
<MkAd :prefer="['horizontal', 'horizontal-big']"/>
<MkContainer :max-height="300" :foldable="true" class="other">
- <template #header><i class="ti ti-clock"></i> {{ i18n.ts.recentPosts }}</template>
+ <template #icon><i class="ti ti-clock"></i></template>
+ <template #header>{{ i18n.ts.recentPosts }}</template>
<MkPagination v-slot="{items}" :pagination="otherPostsPagination">
<MkPagePreview v-for="page in items" :key="page.id" :page="page" class="_margin"/>
</MkPagination>
diff --git a/packages/frontend/src/pages/user/index.activity.vue b/packages/frontend/src/pages/user/index.activity.vue
index 0cc1524663..8ff3374446 100644
--- a/packages/frontend/src/pages/user/index.activity.vue
+++ b/packages/frontend/src/pages/user/index.activity.vue
@@ -1,8 +1,9 @@
<template>
<MkContainer>
- <template #header><i class="ti ti-chart-line" style="margin-right: 0.5em;"></i>{{ $ts.activity }}</template>
- <template #func>
- <button class="_button" @click="showMenu">
+ <template #icon><i class="ti ti-chart-line"></i></template>
+ <template #header>{{ $ts.activity }}</template>
+ <template #func="{ buttonStyleClass }">
+ <button class="_button" :class="buttonStyleClass" @click="showMenu">
<i class="ti ti-dots"></i>
</button>
</template>
diff --git a/packages/frontend/src/pages/user/index.photos.vue b/packages/frontend/src/pages/user/index.photos.vue
index fd975b52bb..607082c1e4 100644
--- a/packages/frontend/src/pages/user/index.photos.vue
+++ b/packages/frontend/src/pages/user/index.photos.vue
@@ -1,19 +1,20 @@
<template>
<MkContainer :max-height="300" :foldable="true">
- <template #header><i class="ti ti-photo" style="margin-right: 0.5em;"></i>{{ $ts.images }}</template>
- <div class="ujigsodd">
+ <template #icon><i class="ti ti-photo"></i></template>
+ <template #header>{{ $ts.images }}</template>
+ <div :class="$style.root">
<MkLoading v-if="fetching"/>
- <div v-if="!fetching && images.length > 0" class="stream">
+ <div v-if="!fetching && images.length > 0" :class="$style.stream">
<MkA
v-for="image in images"
:key="image.note.id + image.file.id"
- class="img"
+ :class="$style.img"
:to="notePage(image.note)"
>
<ImgWithBlurhash :hash="image.file.blurhash" :src="thumbnail(image.file)" :title="image.file.name"/>
</MkA>
</div>
- <p v-if="!fetching && images.length == 0" class="empty">{{ $ts.nothing }}</p>
+ <p v-if="!fetching && images.length == 0" :class="$style.empty">{{ $ts.nothing }}</p>
</div>
</MkContainer>
</template>
@@ -73,30 +74,26 @@ onMounted(() => {
});
</script>
-<style lang="scss" scoped>
-.ujigsodd {
+<style lang="scss" module>
+.root {
padding: 8px;
+}
- > .stream {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
- grid-gap: 6px;
-
- > .img {
- height: 128px;
- border-radius: 6px;
- overflow: clip;
- }
- }
+.stream {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
+ grid-gap: 6px;
+}
- > .empty {
- margin: 0;
- padding: 16px;
- text-align: center;
+.img {
+ height: 128px;
+ border-radius: 6px;
+ overflow: clip;
+}
- > i {
- margin-right: 4px;
- }
- }
+.empty {
+ margin: 0;
+ padding: 16px;
+ text-align: center;
}
</style>