1
0

collapse user activity/files/listenbrainz by default on mobile

This commit is contained in:
Hazelnoot
2024-10-26 12:49:51 -04:00
parent 55df1ad10f
commit 75fc3de405
4 changed files with 17 additions and 10 deletions
@@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<MkContainer :max-height="300" :foldable="true">
<MkContainer :max-height="300" :foldable="true" :expanded="!collapsed">
<template #icon><i class="ti ti-photo"></i></template>
<template #header>{{ i18n.ts.files }}</template>
<div :class="$style.root">
@@ -43,9 +43,12 @@ import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
import { defaultStore } from '@/store.js';
import { i18n } from '@/i18n.js';
const props = defineProps<{
const props = withDefaults(defineProps<{
user: Misskey.entities.UserDetailed;
}>();
collapsed?: boolean;
}>(), {
collapsed: false,
});
const fetching = ref(true);
const files = ref<{