radames commited on
Commit
d2b90f4
1 Parent(s): 5fc8a26

frame reference

Browse files
Files changed (1) hide show
  1. frontend/src/lib/Frame.svelte +5 -0
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>