don't show kanban when logged in lol

This commit is contained in:
Freeplay 2023-06-15 11:24:25 -04:00
parent d20a391d91
commit 2ec8a6e2ef
2 changed files with 16 additions and 1 deletions

View file

@ -4,7 +4,7 @@
:class="{ wallpaper, isMobile, centered: ui === 'classic' }"
>
<XSidebar v-if="!isMobile && $i" />
<XKanban sticky v-if="isDesktop" />
<XKanban sticky v-if="isDesktop && !$i" />
<MkStickyContainer class="contents">
<template #header

View file

@ -208,10 +208,12 @@ let meta = $ref<DetailedInstanceMetadata>();
let isLong = $ref(false);
let collapsed = $ref(!isLong);
let wallpaper = $ref();
os.api("meta", { detail: true }).then((res) => {
meta = res;
isLong = meta.description && (meta.description.length > 500);
wallpaper = `url("${meta.wallpaper}")`
});
let announcement = $ref();
@ -374,3 +376,16 @@ section {
text-align: initial;
}
</style>
<style lang="scss">
#maincontent {
--background-image: v-bind(wallpaper);
}
#visitor-view {
&::before {
content: "";
position: fixed;
inset: 0;
background-image: var(--background-image);
}
}
</style>