1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 15:16:21 +09:00

fix(client): userpage ui (#9179)

* fix(unverified): clip pages ui

* fix(unverified): user page width

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
Nya Candy 2022-12-27 13:19:43 +08:00 committed by GitHub
parent 6c674034fa
commit 574c57eda7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 14 deletions

View File

@ -1,12 +1,14 @@
<template>
<div>
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<MkA v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" class="item _panel _gap">
<b>{{ item.name }}</b>
<div v-if="item.description" class="description">{{ item.description }}</div>
</MkA>
</MkPagination>
</div>
<MkSpacer :content-max="700">
<div class="pages-user-clips">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination" class="list">
<MkA v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" class="item _panel _gap">
<b>{{ item.name }}</b>
<div v-if="item.description" class="description">{{ item.description }}</div>
</MkA>
</MkPagination>
</div>
</MkSpacer>
</template>
<script lang="ts" setup>
@ -28,5 +30,18 @@ const pagination = {
</script>
<style lang="scss" scoped>
.pages-user-clips {
> .list {
> .item {
display: block;
padding: 16px;
> .description {
margin-top: 8px;
padding-top: 8px;
border-top: solid 0.5px var(--divider);
}
}
}
}
</style>

View File

@ -1,11 +1,11 @@
<template>
<div>
<MkSpacer :content-max="700">
<MkPagination v-slot="{items}" :pagination="pagination">
<div class="jrnovfpt">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
</div>
</MkPagination>
</div>
</MkSpacer>
</template>
<script lang="ts" setup>

View File

@ -1,9 +1,9 @@
<template>
<div>
<MkSpacer :content-max="700">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<MkPagePreview v-for="page in items" :key="page.id" :page="page" class="_gap"/>
</MkPagination>
</div>
</MkSpacer>
</template>
<script lang="ts" setup>

View File

@ -1,5 +1,5 @@
<template>
<div>
<MkSpacer :content-max="700">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<div v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" class="item _panel _gap afdcfbfb">
<div class="header">
@ -10,7 +10,7 @@
<MkNote :key="item.id" :note="item.note"/>
</div>
</MkPagination>
</div>
</MkSpacer>
</template>
<script lang="ts" setup>