Style code refactoring.

This commit is contained in:
msavulescu
2025-07-14 23:44:41 +03:00
parent 6705330900
commit 1727c6f734
3 changed files with 41 additions and 49 deletions

View File

@@ -6,9 +6,9 @@ export const balatro: CodeObject = {
installation: `npm install ogl`,
usage: `<template>
<Balatro
isRotate={false}
mouseInteraction={true}
pixelFilter={700}
:is-rotate="false"
:mouse-interaction="true"
:pixel-filter="700"
/>
</template>

View File

@@ -1,5 +1,5 @@
<template>
<div ref="containerRef" :class="className" :style="style" class="balatro-container" />
<div ref="containerRef" :class="className" :style="style" class="w-full h-full" />
</template>
<script setup lang="ts">
@@ -271,10 +271,3 @@ watch(
}
);
</script>
<style scoped>
.balatro-container {
width: 100%;
height: 100%;
}
</style>

View File

@@ -1,8 +1,7 @@
<template>
<div class="balatro-demo">
<TabbedLayout>
<template #preview>
<div class="demo-container" style="height: 500px">
<div class="demo-container">
<Balatro
:is-rotate="rotate"
:mouse-interaction="mouseInteractionEnabled"
@@ -44,7 +43,6 @@
<CliInstallation :command="balatro.cli" />
</template>
</TabbedLayout>
</div>
</template>
<script setup lang="ts">
@@ -157,5 +155,6 @@ const propData = [
overflow: hidden;
padding: 0;
z-index: 1;
height: 500px;
}
</style>