1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-16 00:25:57 +02:00

enhance(frontend): ページネーションの並び順を逆にできるように

This commit is contained in:
syuilo
2025-06-25 20:26:20 +09:00
parent 4d72d6caf4
commit eee9a5f853
21 changed files with 137 additions and 78 deletions

View File

@@ -17,14 +17,14 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #header>
{{ i18n.ts.drafts }} ({{ currentDraftsCount }}/{{ $i?.policies.noteDraftLimit }})
</template>
<div :class="$style.drafts" class="_gaps">
<MkPagination ref="pagingEl" :pagination="paging">
<div class="_spacer">
<MkPagination ref="pagingEl" :pagination="paging" withControl>
<template #empty>
<MkResult type="empty" :text="i18n.ts._drafts.noDrafts"/>
</template>
<template #default="{ items }">
<div class="_spacer _gaps_s">
<div class="_gaps_s">
<div
v-for="draft in (items as unknown as Misskey.entities.NoteDraft[])"
:key="draft.id"
@@ -157,12 +157,6 @@ async function deleteDraft(draft: Misskey.entities.NoteDraft) {
</script>
<style lang="scss" module>
.drafts {
overflow-x: hidden;
overflow-x: clip;
overflow-y: auto;
}
.draft {
padding: 16px;
gap: 16px;