mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 09:23:09 +02:00
c0838c473f
* enhance datasaver mode * サムネイルがないとき変な角丸にならんようにする * Avoid using wildcard selector * Avoid wildcard * Update MkMediaImage.vue * (fix) ノートの画像プレビューがでない * (fix) recent pages design --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
30 lines
652 B
Vue
30 lines
652 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div :class="{ [$style.center]: page.alignCenter, [$style.serif]: page.font === 'serif' }" class="_gaps_s">
|
|
<XBlock v-for="child in page.content" :key="child.id" :page="page" :block="child" :h="2"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted, nextTick } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import XBlock from './page.block.vue';
|
|
|
|
defineProps<{
|
|
page: Misskey.entities.Page,
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.serif {
|
|
font-family: serif;
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
</style>
|