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.

New preferences

Smaug67397c9de10c9502
diff --git a/frontend/app/components/AppCheck.vue b/frontend/app/components/AppCheck.vue
index 1cbf89b5..a66eb2e3 100644
--- a/frontend/app/components/AppCheck.vue
+++ b/frontend/app/components/AppCheck.vue
@@ -24,27 +24,27 @@ function toggle() {
<style scoped lang="scss">
.app-checkbox {
display: inline-flex;
+ width: fit-content;
+ font-family: Inter, sans-serif;
align-items: center;
cursor: pointer;
- font-family: Inter, sans-serif;
- user-select: none;
gap: 0.25rem;
- width: fit-content;
+ user-select: none;
input {
display: none; // on masque le vrai input
}
.checkmark {
+ display: flex;
width: 20px;
height: 20px;
- border-radius: 6px;
border: 2px solid var(--border-color, #ccc);
+ border-radius: 6px;
background: var(--bg-color, #fff);
- display: flex;
+ transition: all 0.2s ease;
align-items: center;
justify-content: center;
- transition: all 0.2s ease;
svg {
width: 16px;
@@ -53,8 +53,8 @@ function toggle() {
}
input:checked + .checkmark {
- background: var(--primary, #4f46e5);
border-color: var(--primary, #4f46e5);
+ background: var(--primary, #4f46e5);
}
.label {
diff --git a/frontend/app/components/AppRadio.vue b/frontend/app/components/AppRadio.vue
index 173920bf..5505ab57 100644
--- a/frontend/app/components/AppRadio.vue
+++ b/frontend/app/components/AppRadio.vue
@@ -24,22 +24,22 @@ const selectItem = (id: number | string) => {
<style scoped lang="scss">
.segmented {
- width: 100%;
display: flex;
+ width: 100%;
gap: 0.5rem;
button {
- flex: 1;
padding: 0.6rem;
border: 1px solid var(--border-color);
- background: #f8f8f8;
border-radius: 0.5rem;
+ background: #f8f8f8;
cursor: pointer;
+ flex: 1;
&.active {
- background: var(--primary);
- color: white;
border-color: var(--primary);
+ color: white;
+ background: var(--primary);
}
}
}
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 0d7a53ed..66d75127 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -179,13 +179,13 @@ button,
:deep permet d'appliquer les règles même si l'élément est rendu hors-DOM parent */
.dropdown {
max-height: 300px;
+ margin: 0;
padding: 2px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-color);
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
- overflow-y: auto;
- margin: 0;
list-style: none;
+ overflow-y: auto;
}
</style>
diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vue
index 60112a88..c4e8ff2f 100644
--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue
+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue
@@ -186,17 +186,17 @@ const options = ref<{ label: string; options: Option[] }[]>([
}
.section {
- margin-bottom: 2rem;
width: 100%;
+ margin-bottom: 2rem;
}
.form-group {
display: flex;
+ width: 100%;
align-items: flex-start;
gap: 1rem;
justify-content: space-between;
margin-bottom: 1rem;
- width: 100%;
}
h2 {
@@ -208,17 +208,20 @@ label {
font-weight: 700;
flex: 1;
}
+
.entry {
- margin-left: auto;
max-width: 400px;
+ margin-left: auto;
}
+
.group-checkbox {
.checkbox-grid {
display: grid;
- grid-template-columns: repeat(2, 1fr);
gap: 0.5rem 3rem;
+ grid-template-columns: repeat(2, 1fr);
}
}
+
.reset {
margin-top: 2rem;
}