π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix margins
Smaug6739934ae301c405
diff --git a/frontend/app/pages/dashboard/docs/[id].vue b/frontend/app/pages/dashboard/docs/[id].vueindex 53e64721..f1bf374b 100644--- a/frontend/app/pages/dashboard/docs/[id].vue+++ b/frontend/app/pages/dashboard/docs/[id].vue@@ -1,14 +1,18 @@<template><div v-if="article?.id" style="width: 100%; padding: 1rem 0"><div style="display: flex; justify-content: space-between">- <div :style="{ width: '80%', margin: 'auto', maxWidth: usePreferences().get('docSize') == 0 ? '980px' : '780px' }">+ <div :style="{ width: '90%', marginLeft: 'auto', maxWidth: usePreferences().get('docSize') == 0 ? '980px' : '780px' }"><DocumentCardHeader :doc="article" style="margin-bottom: 20px" /><!-- eslint-disable-next-line vue/no-v-html --><article ref="element" :class="`${usePreferences().get('theme')}-theme`" style="max-width: 100%" v-html="article.content_html" /><DocumentCardFooter :document="article" :next="next" :previous="previous" /></div>- <div v-if="!isTablet() && !preferencesStore.get('hideTOC')" class="toc"><TableOfContent :doc="article" :element="element" class="toc" style="width: 400px" /></div>- <div :style="{ marginRight: !isTablet() && preferencesStore.get('hideTOC') && useSidebar().isOpened.value ? '200px' : '0px', transition: 'margin 0.3s' }" />+ <div v-if="!isTablet() && !preferencesStore.get('hideTOC')" class="toc">+ <TableOfContent :doc="article" :element="element" class="toc" style="width: 400px" />+ </div>+ <div+ :style="{ marginRight: !isTablet() && preferencesStore.get('hideTOC') && useSidebar().isOpened.value ? '200px' : '0px', transition: 'margin 0.3s' }"+ /></div></div><Error v-else-if="error" :error="error" />