diff --git a/src/components/CustomSelect.vue b/src/components/CustomSelect.vue index 28da03a..d6b29c0 100644 --- a/src/components/CustomSelect.vue +++ b/src/components/CustomSelect.vue @@ -31,11 +31,10 @@ const normalizedOptions = computed(() => { const selectedLabel = computed(() => { const found = normalizedOptions.value.find(o => o.value === props.modelValue); - return found ? (found.label || found.value) : props.placeholder || ''; -}); - -const toggle = () => { - isOpen.value = !isOpen.value; + return found ? (found.label || found.value) : (props.modelValue || props.placeholder || ''); + }); + + const toggle = () => { isOpen.value = !isOpen.value; }; const select = (value: string) => { diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue index 7852e41..1f9af24 100644 --- a/src/components/SettingsModal.vue +++ b/src/components/SettingsModal.vue @@ -1,6 +1,8 @@ - + - + Editor Settings Font Family - - - {{ font.split(',')[0].replace(/['"]/g, '') }} - - Custom... - - + :options="displayFontOptions" + :full-width="true" + placeholder="Select or enter font family" + /> - +