π 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
Improve design
Smaug673978460486169d
diff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vueindex e1674f02..5d7d98ab 100644--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue@@ -1,12 +1,17 @@<template>- <div class="editor-container">- <Toolbar :document="document" @execute-action="exec" />- <div style="padding: 6px 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 8px">- <input placeholder="Title" class="title" v-model="document.name" v-if="!minimal" />- <input placeholder="Description" class="description" v-model="document.description" v-if="!minimal" />- <div class="markdown" ref="container">- <div ref="editorContainer" class="codemirror-editor" @scroll="syncScroll" />- <div v-if="showPreview" class="markdown-preview document-theme" ref="markdownPreview" v-html="document.content_html"></div>+ <div class="card-component" style="height: 100%">+ <header>+ <h1>Markdown editor</h1>+ </header>+ <div class="editor-container">+ <Toolbar :document="document" @execute-action="exec" />+ <div style="padding: 6px 12px; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 8px">+ <input placeholder="Title" class="title" v-model="document.name" v-if="!minimal" />+ <input placeholder="Description" class="description" v-model="document.description" v-if="!minimal" />+ <div class="markdown" ref="container">+ <div ref="editorContainer" class="codemirror-editor" @scroll="syncScroll" />+ <div v-if="showPreview" class="markdown-preview document-theme" ref="markdownPreview" v-html="document.content_html"></div>+ </div></div></div></div>diff --git a/frontend/styles/components.scss b/frontend/styles/components.scssindex 50d2324c..cdd82819 100644--- a/frontend/styles/components.scss+++ b/frontend/styles/components.scss@@ -11,7 +11,7 @@.card-component {display: block;- margin: 12px 30px;+ margin: 12px 6px;gap: 16px;padding: 24px;border-radius: 8px;