π 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 responsive design
Smaug673924a5662e28b8
diff --git a/frontend/app/components/AppButton.vue b/frontend/app/components/AppButton.vueindex 819fda3b..187a0edf 100644--- a/frontend/app/components/AppButton.vue+++ b/frontend/app/components/AppButton.vue@@ -70,4 +70,11 @@ button {background: var(--red-dark);}}++@media screen and (width <= 768px) {+ button {+ padding: 8px;+ font-size: 0.8rem;+ }+}</style>diff --git a/frontend/app/components/MarkdownEditor/Toolbar.vue b/frontend/app/components/MarkdownEditor/Toolbar.vueindex 1231986b..26467381 100644--- a/frontend/app/components/MarkdownEditor/Toolbar.vue+++ b/frontend/app/components/MarkdownEditor/Toolbar.vue@@ -1,7 +1,7 @@<template><div class="toolbar"><!-- Formatting Group -->- <div class="toolbar-group">+ <div class="toolbar-group no-mobile"><div class="group-buttons"><button v-for="item in formattingTools" :key="item.name" class="toolbar-btn" :aria-label="item.name" @click="emitAction(item.action)"><!-- eslint-disable-next-line vue/no-v-html -->@@ -16,7 +16,7 @@<div class="toolbar-divider" /><!-- Insert Group -->- <div class="toolbar-group">+ <div class="toolbar-group no-mobile"><div class="group-buttons"><button v-for="item in insertTools" :key="item.name" class="toolbar-btn" :aria-label="item.name" @click="emitAction(item.action)"><!-- eslint-disable-next-line vue/no-v-html -->@@ -31,7 +31,7 @@<div class="toolbar-divider" /><!-- Structure Group -->- <div class="toolbar-group">+ <div class="toolbar-group no-mobile"><div class="group-buttons"><button v-for="item in structureTools" :key="item.name" class="toolbar-btn" :aria-label="item.name" @click="emitAction(item.action)"><!-- eslint-disable-next-line vue/no-v-html -->@@ -46,8 +46,8 @@<div class="toolbar-divider" /><!-- Voice & Category -->- <div class="toolbar-group" style=" flex: 1;flex-direction: row">- <VoiceRecognition @transcription="handleTranscription" />+ <div class="toolbar-group" style="flex: 1; flex-direction: row">+ <VoiceRecognition class="no-mobile" @transcription="handleTranscription" /><AppSelect v-if="!minimal" v-model="localValue.parent_id" :items="categories" placeholder="Category" class="category-select" /></div>diff --git a/frontend/app/components/ModalManager.vue b/frontend/app/components/ModalManager.vueindex 1ffc445a..9f843c57 100644--- a/frontend/app/components/ModalManager.vue+++ b/frontend/app/components/ModalManager.vue@@ -86,4 +86,17 @@ const modals = modalManager.modals;background-color: rgb(0 0 0 / 50%);inset: 0;}++@media screen and (max-width: 600px) {+ .modal-container {+ width: 100%;+ height: 100%;+ border-radius: 0;+ }++ .close-btn {+ top: 0.5rem;+ right: 0.5rem;+ }+}</style>diff --git a/frontend/app/styles/components.scss b/frontend/app/styles/components.scssindex 4b60624f..f77b622f 100644--- a/frontend/app/styles/components.scss+++ b/frontend/app/styles/components.scss@@ -73,7 +73,7 @@// ===========================// CARD COMPONENT// ===========================-.card {+.card-component {display: block;margin: 12px 6px;padding: 24px;@@ -87,6 +87,7 @@align-items: center;border-bottom: 1px solid var(--border-color);justify-content: space-between;+ padding-bottom: 4px;margin-bottom: 10px;h1 {@@ -97,9 +98,11 @@}}-// Legacy alias-.card-component {- @extend .card;+@media screen and (width <=768px) {+ .card-component {+ margin: 8px 0;+ padding: 16px;+ }}// ===========================