add daily duration to header, fix dropdown overflows, add time dropdown to duration select

This commit is contained in:
Gregor Vostrak
2024-08-23 15:34:49 +02:00
parent 33d139e3aa
commit 859833452f
7 changed files with 85 additions and 33 deletions

View File

@@ -2,8 +2,10 @@
import { onMounted, onUnmounted, ref } from 'vue';
import {
flip,
limitShift,
type Placement,
type ReferenceElement,
shift,
useFloating,
} from '@floating-ui/vue';
import { offset } from '@floating-ui/vue';
@@ -59,7 +61,15 @@ const floating = ref(null);
const { floatingStyles } = useFloating(reference, floating, {
placement: props.align,
whileElementsMounted: autoUpdate,
middleware: [flip(), offset(10)],
middleware: [
flip(),
offset(10),
shift({
limiter: limitShift({
offset: 5,
}),
}),
],
});
</script>