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`, installation: `npm install ogl`,
usage: `<template> usage: `<template>
<Balatro <Balatro
isRotate={false} :is-rotate="false"
mouseInteraction={true} :mouse-interaction="true"
pixelFilter={700} :pixel-filter="700"
/> />
</template> </template>

View File

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

View File

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