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.

fix: interface on mobile

Smaug6739de0991c7e4fa
diff --git a/frontend/app/components/Node/Document/Header.vue b/frontend/app/components/Node/Document/Header.vue
index c70e64a8..b82bc711 100644
--- a/frontend/app/components/Node/Document/Header.vue
+++ b/frontend/app/components/Node/Document/Header.vue
@@ -10,7 +10,7 @@
<img v-if="user" :src="api.avatarURL(user)" class="avatar" />
<span style="font-size: 16px; color: var(--font-color-light)">{{ user?.username }}</span>
</p>
- <HeaderActionRow :doc="doc" :is-public="public" class="no-print" />
+ <HeaderActionRow :doc="doc" :is-public="public" class="no-print actions" />
</div>
<div class="content">
<div class="infos">
@@ -70,13 +70,14 @@ p {
.top-row {
display: flex;
- align-items: center;
+ align-items: flex-start;
justify-content: space-between;
margin-top: 6px;
.user {
display: flex;
align-items: center;
gap: 12px;
+ min-width: 120px;
}
}
.content {
@@ -106,7 +107,6 @@ h1 {
.description {
font-size: 14px;
color: var(--font-color-light);
- margin-bottom: 8px;
}
.category {
@@ -119,7 +119,7 @@ h1 {
.tags {
display: flex;
flex-wrap: wrap;
- padding-top: 5px;
+ padding: 8px 0;
}
@media print, screen and (width >= 1024px) {
diff --git a/frontend/app/components/Node/Document/HeaderActionRow.vue b/frontend/app/components/Node/Document/HeaderActionRow.vue
index 134b10e8..6258373a 100644
--- a/frontend/app/components/Node/Document/HeaderActionRow.vue
+++ b/frontend/app/components/Node/Document/HeaderActionRow.vue
@@ -85,4 +85,7 @@ a {
visibility: visible;
}
}
+.actions-row {
+ flex-wrap: wrap;
+}
</style>
diff --git a/frontend/app/components/Node/TOC/TOC.vue b/frontend/app/components/Node/TOC/TOC.vue
index 60946d2b..526c59d7 100644
--- a/frontend/app/components/Node/TOC/TOC.vue
+++ b/frontend/app/components/Node/TOC/TOC.vue
@@ -13,9 +13,9 @@
<p v-else>Nothing to display</p>
</ul>
<h4 v-if="childs.length">Child documents</h4>
- <NuxtLink v-for="child in childs" :key="child.id" :to="`/dashboard/docs/${child.id}`" class="child-link"
- ><Icon name="file_shortcut" />{{ child.data.name as string }}</NuxtLink
- >
+ <NuxtLink v-for="child in childs" :key="child.id" :to="`/dashboard/docs/${child.id}`" class="child-link">
+ <Icon name="file_shortcut" fill="var(--primary)" />{{ child.data.name as string }}
+ </NuxtLink>
</aside>
</template>
@@ -116,6 +116,7 @@ const childs = computed(() => nodesTree.getChildren(props.doc?.id).filter(c => c
<style lang="scss" scoped>
h4 {
color: var(--font-color-light);
+ font-size: 14px;
}
aside {
@@ -154,7 +155,7 @@ li:deep(a).active {
.child-link {
display: flex;
margin: 5px 0;
- font-weight: bold;
+ font-weight: 450;
color: var(--font-color);
transition: color 0.25s;
align-items: flex-start;