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 app select design

Smaug6739538e2fd08f04
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 051f5341..ba0e4d63 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -1,6 +1,15 @@
<template>
<div ref="trigger" class="app-select" :style="{ width: size || '100%' }">
- <input v-if="open" ref="searchInput" v-model="search" type="text" placeholder="Search..." class="search-input" @keydown="handleKeyDown" @click.stop />
+ <input
+ v-if="open && searchable"
+ ref="searchInput"
+ v-model="search"
+ type="text"
+ placeholder="Search..."
+ class="search-input"
+ @keydown="handleKeyDown"
+ @click.stop
+ />
<div v-else class="app-select-trigger">
<button @click.stop="toggleDropdown" style="height: 30px">{{ selected?.label || placeholder }}</button>
<svg :class="{ rotated: !open }" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="var(--font-color)">
@@ -192,7 +201,7 @@ button,
.dropdown {
max-height: 300px;
margin: 0;
- padding: 2px;
+ padding: 0 2px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-color);
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 4aa7e208..7a8f9d52 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -32,9 +32,9 @@ function select() {
<style scoped>
.tree-node {
display: block;
- margin: 2px auto;
+ margin: 0px auto;
padding: 4px 8px;
- border-radius: 6px;
+ border-radius: 4px;
font-size: 15px;
text-align: left;
cursor: pointer;