fix(quick actions): invalid class prop

This commit is contained in:
kolaente 2023-08-29 09:57:13 +02:00
parent 0ca73e0851
commit a4b369470a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 12 deletions

View File

@ -22,11 +22,9 @@
<div class="help has-text-grey-light p-2" v-if="hintText !== '' && !isNewTaskCommand">
{{ hintText }}
{{ searchMode }}
</div>
<quick-add-magic class="p-2 modal-container-smaller" v-if="isNewTaskCommand"/>
<quick-add-magic v-if="isNewTaskCommand"/>
<div class="results" v-if="selectedCmd === null">
<div v-for="(r, k) in results" :key="k" class="result">
@ -151,12 +149,12 @@ const foundProjects = computed(() => {
const history = getHistory()
const allProjects = [
...new Set([
...history.map((l) => projectStore.projects[l.id]),
...history.map((p) => projectStore.projects[p.id]),
...projectStore.searchProject(project),
]),
]
return allProjects.filter(l => Boolean(l))
return allProjects.filter(p => Boolean(p))
})
// FIXME: use fuzzysearch
@ -625,10 +623,4 @@ function reset() {
background: var(--grey-100);
}
}
// HACK:
// FIXME:
.modal-container-smaller :deep(.hint-modal .modal-container) {
height: calc(100vh - 5rem);
}
</style>

View File

@ -108,7 +108,7 @@ const visible = ref(false)
const mode = computed(() => authStore.settings.frontendSettings.quickAddMagicMode)
defineProps<{
highlightHintIcon: boolean,
highlightHintIcon?: boolean,
}>()
const prefixes = computed(() => PREFIXES[mode.value])