1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-08 15:20:55 +00:00
FrankerFaceZ/src/std-components/aspect.vue

12 lines
242 B
Vue
Raw Normal View History

<template functional>
<div
:class="`tw-aspect--align-${props.align||'top'}`"
class="tw-aspect"
>
<div
:style="{paddingBottom: (100 * (1 / (props.ratio || 1))) + '%'}"
class="tw-aspect__spacer"
/>
<slot />
</div>
</template>