mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 00:53:08 +02:00
c2370a1be6
* chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
32 lines
564 B
Vue
32 lines
564 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div :class="$style.root">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { provide } from 'vue';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
minWidth?: number;
|
|
}>(), {
|
|
minWidth: 210,
|
|
});
|
|
|
|
provide('splited', true);
|
|
|
|
const minWidth = props.minWidth + 'px';
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
|
|
grid-gap: 12px;
|
|
}
|
|
</style>
|