feature: vor und nachteile

This commit is contained in:
Hikyu
2026-05-31 13:54:31 +02:00
parent 552a947a1c
commit e3dad17446
23270 changed files with 3024794 additions and 200 deletions
+22
View File
@@ -0,0 +1,22 @@
<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps<{
url: string
scale?: number
}>()
const scaleInvertPercent = computed(() => `${(1 / (props.scale || 1)) * 100}%`)
</script>
<template>
<div class="h-full w-full">
<div relative :style="{ width: scaleInvertPercent, height: scaleInvertPercent }">
<iframe
id="frame" class="w-full h-full"
:src="url"
:style="scale ? { transform: `scale(${scale})`, transformOrigin: 'top left' } : {}"
/>
</div>
</div>
</template>