mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-20 06:54:56 +01:00
40 lines
725 B
Vue
40 lines
725 B
Vue
|
<!--
|
||
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||
|
-->
|
||
|
|
||
|
<template>
|
||
|
<div :class="$style.timelineRoot">
|
||
|
<div v-if="showHeader" :class="$style.header"><slot name="header"></slot></div>
|
||
|
<div :class="$style.body"><slot name="body"></slot></div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
withDefaults(defineProps<{
|
||
|
showHeader?: boolean;
|
||
|
}>(), {
|
||
|
showHeader: true,
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style module lang="scss">
|
||
|
.timelineRoot {
|
||
|
background-color: var(--panel);
|
||
|
height: 100%;
|
||
|
max-height: var(--embedMaxHeight, none);
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
|
||
|
.header {
|
||
|
flex-shrink: 0;
|
||
|
border-bottom: 1px solid var(--divider);
|
||
|
}
|
||
|
|
||
|
.body {
|
||
|
flex-grow: 1;
|
||
|
overflow-y: auto;
|
||
|
}
|
||
|
</style>
|