Skip to content

Commit

Permalink
perf: multi focus left
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Mar 22, 2024
1 parent 5df70cf commit 5e84a3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MultiFocusCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ const props = withDefaults(
},
);
const _1vw = document.documentElement.scrollWidth / 100;
const left = _1vw * 25.5;
</script>
<template>
<DraggableCard
:initialValue="{ top: 75, left: _1vw * 25 }"
:initialValue="{ top: 215, left }"
v-slot="{ onRef }"
class="z-2 box-shadow-dim w-420px"
>
Expand Down

0 comments on commit 5e84a3b

Please sign in to comment.