Skip to content

Commit

Permalink
fix: provide scale context for each slide container
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 23, 2024
1 parent 624b8ef commit 0d3b469
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/client/internals/SlideContainer.vue
Expand Up @@ -47,9 +47,10 @@ const scale = computed(() => {
})
const style = computed(() => ({
height: `${slideHeight}px`,
width: `${slideWidth}px`,
transform: `translate(-50%, -50%) scale(${scale.value})`,
'height': `${slideHeight}px`,
'width': `${slideWidth}px`,
'transform': `translate(-50%, -50%) scale(${scale.value})`,
'--slidev-slide-scale': scale.value,
}))
const className = computed(() => ({
Expand Down

0 comments on commit 0d3b469

Please sign in to comment.