add: new design

New design
This commit is contained in:
Fiona Lena Urban 2025-05-10 11:43:35 +02:00
parent 192b031140
commit 628659c39d
5 changed files with 14 additions and 6 deletions

View file

@ -77,9 +77,9 @@ const intl = Intl.NumberFormat('de-DE', {
const { lengthX, isSwiping } = useSwipe(top, {
passive: false,
threshold: 5,
threshold: 30,
onSwipe() {
if (lengthX.value != 0) {
if (lengthX.value > 50 || lengthX.value < -50) {
left.value = `${-clamp(lengthX.value, -100, 100)}px`
}
},