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 responsive design of category creation on mobile

Smaug6739eb1eb90ebf2f
diff --git a/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue b/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
index 428c49e0..81503fa0 100644
--- a/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
+++ b/frontend/app/pages/dashboard/categories/_modals/CreateCategoryModal.vue
@@ -7,12 +7,12 @@
<div>
<AppSelect v-model="category.parent_id" :nullable="true" class="entry" :items="categoriesItem" placeholder="Select a category parent" />
</div>
- <div style="display: flex">
- <div style="flex: 1; margin-right: 10px">
+ <div style="display: flex; flex-wrap: wrap">
+ <div style="flex: 1; margin-right: 10px; min-width: 200px">
<label for="order">Order <AppHint text="Order of the category in the sidebar" /></label>
<input id="order" v-model.number="category.order" class="entry" type="number" placeholder="0" />
</div>
- <div style="flex: 1; margin-left: 10px">
+ <div style="flex: 1; margin-left: 10px; min-width: 200px">
<label for="color">Color</label>
<AppColorPicker id="color" v-model="category.color" class="entry" :nullable="true" />
</div>