diff --git a/src/app.css b/src/app.css index e78d68d83..dad382818 100644 --- a/src/app.css +++ b/src/app.css @@ -115,12 +115,12 @@ li p { select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); - background-position: right 0.5rem center; + background-position: right 0rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; - padding-right: 2.5rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; + /* padding-right: 2.5rem; */ /* for Firefox */ -moz-appearance: none; /* for Chrome */ diff --git a/src/lib/components/admin/Settings/Models.svelte b/src/lib/components/admin/Settings/Models.svelte index 580f3dcfd..50565f66d 100644 --- a/src/lib/components/admin/Settings/Models.svelte +++ b/src/lib/components/admin/Settings/Models.svelte @@ -26,6 +26,7 @@ import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; import Cog6 from '$lib/components/icons/Cog6.svelte'; import ConfigureModelsModal from './Models/ConfigureModelsModal.svelte'; + import Wrench from '$lib/components/icons/Wrench.svelte'; let importFiles; let modelsImportInputElement: HTMLInputElement; @@ -151,10 +152,22 @@ > -
+
+ +
+
+ +
+ + + {#if defaultModelIds.length > 0}
{#each defaultModelIds as modelId, modelIdx} @@ -170,44 +206,6 @@ {$i18n.t('No models selected')}
{/if} - -
- -
- - -
- -
-
diff --git a/src/lib/components/workspace/common/AccessControl.svelte b/src/lib/components/workspace/common/AccessControl.svelte index c101ca1c6..db0c10a70 100644 --- a/src/lib/components/workspace/common/AccessControl.svelte +++ b/src/lib/components/workspace/common/AccessControl.svelte @@ -37,6 +37,18 @@ }); $: onChange(accessControl); + + $: if (selectedGroupId) { + onSelectGroup(); + } + + const onSelectGroup = () => { + if (selectedGroupId !== '') { + accessControl.read.group_ids = [...accessControl.read.group_ids, selectedGroupId]; + + selectedGroupId = ''; + } + };
@@ -126,7 +138,42 @@
-
+
+
+
+
+ +
+ +
+
+
+ +
+ +
{#if accessGroups.length > 0} {#each accessGroups as group}
@@ -140,9 +187,9 @@
-
+
- -
- -
-
-
-
- -
-
- - - -
-
-
-
{/if}