mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 08:55:08 +01:00
cd7ab326cd
This reverts commit 22d966e92d
.
30 lines
636 B
Vue
30 lines
636 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' }">
|
|
<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>
|