mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-21 22:35:11 +00:00
collapse user activity/files/listenbrainz by default on mobile
This commit is contained in:
parent
55df1ad10f
commit
75fc3de405
4 changed files with 17 additions and 10 deletions
|
@ -136,13 +136,13 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkInfo v-if="user.pinnedNotes.length === 0 && $i?.id === user.id">{{ i18n.ts.userPagePinTip }}</MkInfo>
|
<MkInfo v-if="user.pinnedNotes.length === 0 && $i?.id === user.id">{{ i18n.ts.userPagePinTip }}</MkInfo>
|
||||||
<template v-if="narrow">
|
<template v-if="narrow">
|
||||||
<MkLazy>
|
<MkLazy>
|
||||||
<XFiles :key="user.id" :user="user"/>
|
<XFiles :key="user.id" :user="user" :collapsed="true"/>
|
||||||
</MkLazy>
|
</MkLazy>
|
||||||
<MkLazy>
|
<MkLazy>
|
||||||
<XActivity :key="user.id" :user="user"/>
|
<XActivity :key="user.id" :user="user" :collapsed="true"/>
|
||||||
</MkLazy>
|
</MkLazy>
|
||||||
<MkLazy>
|
<MkLazy>
|
||||||
<XListenBrainz v-if="user.listenbrainz && listenbrainzdata" :key="user.id" :user="user"/>
|
<XListenBrainz v-if="user.listenbrainz && listenbrainzdata" :key="user.id" :user="user" :collapsed="true"/>
|
||||||
</MkLazy>
|
</MkLazy>
|
||||||
</template>
|
</template>
|
||||||
<!-- <div v-if="!disableNotes">
|
<!-- <div v-if="!disableNotes">
|
||||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MkContainer>
|
<MkContainer :foldable="true" :expanded="!collapsed">
|
||||||
<template #icon><i class="ti ti-chart-line"></i></template>
|
<template #icon><i class="ti ti-chart-line"></i></template>
|
||||||
<template #header>{{ i18n.ts.activity }}</template>
|
<template #header>{{ i18n.ts.activity }}</template>
|
||||||
<template #func="{ buttonStyleClass }">
|
<template #func="{ buttonStyleClass }">
|
||||||
|
@ -30,8 +30,10 @@ import { i18n } from '@/i18n.js';
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
user: Misskey.entities.User;
|
user: Misskey.entities.User;
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
collapsed?: boolean;
|
||||||
}>(), {
|
}>(), {
|
||||||
limit: 50,
|
limit: 50,
|
||||||
|
collapsed: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const chartSrc = ref('per-user-notes');
|
const chartSrc = ref('per-user-notes');
|
||||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<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 #icon><i class="ti ti-photo"></i></template>
|
||||||
<template #header>{{ i18n.ts.files }}</template>
|
<template #header>{{ i18n.ts.files }}</template>
|
||||||
<div :class="$style.root">
|
<div :class="$style.root">
|
||||||
|
@ -43,9 +43,12 @@ import ImgWithBlurhash from '@/components/MkImgWithBlurhash.vue';
|
||||||
import { defaultStore } from '@/store.js';
|
import { defaultStore } from '@/store.js';
|
||||||
import { i18n } from '@/i18n.js';
|
import { i18n } from '@/i18n.js';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
user: Misskey.entities.UserDetailed;
|
user: Misskey.entities.UserDetailed;
|
||||||
}>();
|
collapsed?: boolean;
|
||||||
|
}>(), {
|
||||||
|
collapsed: false,
|
||||||
|
});
|
||||||
|
|
||||||
const fetching = ref(true);
|
const fetching = ref(true);
|
||||||
const files = ref<{
|
const files = ref<{
|
||||||
|
|
|
@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<MkContainer :foldable="true">
|
<MkContainer :foldable="true" :expanded="!collapsed">
|
||||||
<template #header
|
<template #header
|
||||||
><i
|
><i
|
||||||
class="ph-headphones ph-bold ph-lg"
|
class="ph-headphones ph-bold ph-lg"
|
||||||
|
@ -40,8 +40,10 @@ import MkContainer from "@/components/MkContainer.vue";
|
||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
user: misskey.entities.User;
|
user: misskey.entities.User;
|
||||||
}>(),
|
collapsed?: boolean;
|
||||||
{},
|
}>(), {
|
||||||
|
collapsed: false,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
const listenbrainz = { title: '', artist: '', lastlisten: '', img: '', musicbrainzurl: '', listenbrainzurl: '' };
|
const listenbrainz = { title: '', artist: '', lastlisten: '', img: '', musicbrainzurl: '', listenbrainzurl: '' };
|
||||||
if (props.user.listenbrainz) {
|
if (props.user.listenbrainz) {
|
||||||
|
|
Loading…
Reference in a new issue