radames commited on
Commit
33e1a30
β€’
1 Parent(s): 89cf6e4

fiz safari z-index

Browse files
frontend/src/lib/Result.svelte CHANGED
@@ -132,6 +132,8 @@
132
  }
133
  .modal {
134
  @apply fixed top-0 left-0 w-screen min-h-screen z-10 bg-black bg-opacity-80 backdrop-blur-sm;
 
 
135
  }
136
  .go-tweet,
137
  button {
 
132
  }
133
  .modal {
134
  @apply fixed top-0 left-0 w-screen min-h-screen z-10 bg-black bg-opacity-80 backdrop-blur-sm;
135
+ transform: translateZ(1000px);
136
+ transform-style: preserve-3d;
137
  }
138
  .go-tweet,
139
  button {
frontend/src/routes/index.svelte CHANGED
@@ -63,7 +63,7 @@
63
  const promptsFiltered = prompts.filter((_, i) => !idsToRemove.includes(i));
64
  const radomPromptId = ~~(Math.random() * promptsFiltered.length);
65
  const randomPrompt: string = promptsFiltered[radomPromptId];
66
- currPromptIndex = prompts.indexOf(randomPrompt)
67
 
68
  answer = randomPrompt.replace(/_/g, ' ');
69
  imagePaths = promptsData[randomPrompt].slice(0, 6);
@@ -257,12 +257,12 @@
257
 
258
  <style lang="postcss">
259
  .board {
260
- @apply grid gap-1.5 grid-rows-[7] mx-0 my-auto;
261
  --height: min(150px, calc(var(--vh, 100vh) - 310px));
262
  height: var(--height);
263
  }
264
  .row {
265
- @apply grid gap-2;
266
  grid-template-columns: repeat(var(--cols), 1fr);
267
  }
268
 
@@ -270,6 +270,8 @@
270
  @apply w-full text-base text-center font-bold
271
  uppercase select-none relative bg-gray-50 text-black;
272
  vertical-align: middle;
 
 
273
  }
274
 
275
  .tile .filled {
@@ -280,8 +282,6 @@
280
  .tile .back {
281
  @apply box-border inline-flex justify-center items-center w-full h-full
282
  absolute top-0 left-0 transition-transform duration-500;
283
- backface-visibility: hidden;
284
- -webkit-backface-visibility: hidden;
285
  }
286
  .tile .letter {
287
  @apply flex place-items-center h-full bg-gray-50 z-10;
 
63
  const promptsFiltered = prompts.filter((_, i) => !idsToRemove.includes(i));
64
  const radomPromptId = ~~(Math.random() * promptsFiltered.length);
65
  const randomPrompt: string = promptsFiltered[radomPromptId];
66
+ currPromptIndex = prompts.indexOf(randomPrompt);
67
 
68
  answer = randomPrompt.replace(/_/g, ' ');
69
  imagePaths = promptsData[randomPrompt].slice(0, 6);
 
257
 
258
  <style lang="postcss">
259
  .board {
260
+ @apply relative grid gap-1.5 grid-rows-[7] mx-0 my-auto;
261
  --height: min(150px, calc(var(--vh, 100vh) - 310px));
262
  height: var(--height);
263
  }
264
  .row {
265
+ @apply relative grid gap-2;
266
  grid-template-columns: repeat(var(--cols), 1fr);
267
  }
268
 
 
270
  @apply w-full text-base text-center font-bold
271
  uppercase select-none relative bg-gray-50 text-black;
272
  vertical-align: middle;
273
+ transform: translateZ(0);
274
+ transform-style: preserve-3d;
275
  }
276
 
277
  .tile .filled {
 
282
  .tile .back {
283
  @apply box-border inline-flex justify-center items-center w-full h-full
284
  absolute top-0 left-0 transition-transform duration-500;
 
 
285
  }
286
  .tile .letter {
287
  @apply flex place-items-center h-full bg-gray-50 z-10;