Improve assignee and person pickers with search, chips and inline person creation

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-05 17:49:17 +03:30
co-authored by Cursor
parent 3296b1c209
commit df8fac187e
6 changed files with 606 additions and 75 deletions
+16 -6
View File
@@ -1,3 +1,7 @@
<script lang="ts">
let openModalCount = 0;
</script>
<script setup lang="ts">
import { onUnmounted, watch } from 'vue';
import UiIcon from '@/components/UiIcon.vue';
@@ -24,16 +28,22 @@ const emit = defineEmits<{
close: [];
}>();
let locked = false;
function setLock(next: boolean) {
if (next === locked) return;
locked = next;
openModalCount = Math.max(0, openModalCount + (next ? 1 : -1));
document.body.style.overflow = openModalCount > 0 ? 'hidden' : '';
}
watch(
() => props.open,
(open) => {
document.body.style.overflow = open ? 'hidden' : '';
},
(open) => setLock(open),
{ immediate: true },
);
onUnmounted(() => {
document.body.style.overflow = '';
});
onUnmounted(() => setLock(false));
function isMobileViewport() {
return typeof window !== 'undefined' && window.matchMedia('(max-width: 900px)').matches;