Spaces:
Runtime error
Runtime error
frame reference
Browse files
frontend/src/lib/Frame.svelte
CHANGED
|
@@ -20,6 +20,7 @@
|
|
| 20 |
color: ${color};
|
| 21 |
`}
|
| 22 |
>
|
|
|
|
| 23 |
<LoadingIcon />
|
| 24 |
<h2 class="text-lg">Click to paint</h2>
|
| 25 |
|
|
@@ -31,4 +32,8 @@
|
|
| 31 |
@apply pointer-events-none touch-none absolute top-0 left-0 border-2 border-spacing-3 border-sky-500 w-[512px] h-[512px];
|
| 32 |
transform-origin: 0 0;
|
| 33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
</style>
|
|
|
|
| 20 |
color: ${color};
|
| 21 |
`}
|
| 22 |
>
|
| 23 |
+
<div class="small-frame z-0 flex relative" />
|
| 24 |
<LoadingIcon />
|
| 25 |
<h2 class="text-lg">Click to paint</h2>
|
| 26 |
|
|
|
|
| 32 |
@apply pointer-events-none touch-none absolute top-0 left-0 border-2 border-spacing-3 border-sky-500 w-[512px] h-[512px];
|
| 33 |
transform-origin: 0 0;
|
| 34 |
}
|
| 35 |
+
.small-frame {
|
| 36 |
+
@apply pointer-events-none touch-none absolute top-1/2 left-1/2 border-2 border-spacing-3 border-sky-500 w-[256px] h-[256px];
|
| 37 |
+
transform: translateX(-50%) translateY(-50%);
|
| 38 |
+
}
|
| 39 |
</style>
|