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.

Improve mobile render

Smaug67391ffd2ae97c4e
diff --git a/frontend/app/components/Node/NodeList.vue b/frontend/app/components/Node/NodeList.vue
index 00bdd78c..4ed6bfe6 100644
--- a/frontend/app/components/Node/NodeList.vue
+++ b/frontend/app/components/Node/NodeList.vue
@@ -2,11 +2,7 @@
<div class="card-component node-list">
<header>
<h1 v-if="parent">
- <Icon
- :name="parent.icon || 'files'"
- display="xl"
- :class="`parent-icon ${getAppColor(parent.color as number, true)}`"
- />
+ <Icon :name="parent.icon || 'files'" display="xl" :class="`parent-icon ${getAppColor(parent.color as number, true)}`" />
{{ parent.name }}
</h1>
<h1 v-else-if="parentId === 'shared'">
@@ -175,19 +171,6 @@ h1 {
gap: 6px;
}
-.parent-icon-wrapper {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- border-radius: 8px;
- transition: transform $transition-duration $transition-duration;
-
- :deep(svg) {
- fill: currentColor;
- }
-}
.parent-icon {
padding: 6px;
border-radius: 6px;
@@ -220,4 +203,13 @@ h1 {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
+
+@media screen and (max-width: 768px) {
+ .parent-icon {
+ margin-right: 0;
+ }
+ .header-actions {
+ gap: 0;
+ }
+}
</style>