mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Style code refactoring.
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user