Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

refactor(MediumView): remove unused transition logic and clean up styles

Smaug6739da810b88d5db
diff --git a/frontend/app/components/MediumView.vue b/frontend/app/components/MediumView.vue
index 379ab4eb..f2884b1c 100644
--- a/frontend/app/components/MediumView.vue
+++ b/frontend/app/components/MediumView.vue
@@ -1,24 +1,24 @@
<template>
- <main :style="{ paddingLeft: marginLeft, transition }">
+ <main :style="{ paddingLeft: marginLeft }">
<slot />
</main>
</template>
<script setup lang="ts">
-const { isOpened, paneWidth, isResizing } = useSidebar();
+const { isOpened, paneWidth } = useSidebar();
const { isMobile } = useDevice();
const marginLeft = computed(() => (isMobile.value || !isOpened.value ? '10px' : `${paneWidth.value + 20}px`));
-const transition = computed(() => (isResizing.value ? 'none' : 'padding-left $transition-medium'));
</script>
-<style scoped>
+<style scoped lang="scss">
main {
display: flex;
width: 100%;
height: 100%;
padding: 0 10px;
flex-direction: column;
+ transition: padding-left $transition-medium;
}
@media print {