radames commited on
Commit
fd7fe93
·
1 Parent(s): ab975a3

center and status message

Browse files
frontend/src/lib/ResultCanvas.svelte CHANGED
@@ -115,7 +115,7 @@
115
  }
116
  </script>
117
 
118
- <div class="relative overflow-clip flex flex-col justify-center w-full h-full">
119
  {#if $resultImage}
120
  <img
121
  class="image {$generateHuman ? 'opacity-30' : ''}"
@@ -138,6 +138,7 @@
138
  d="M20 12a8 8 0 0 1-8 8v4a12 12 0 0 0 12-12h-4Zm-2-5.3a8 8 0 0 1 2 5.3h4c0-3-1.1-5.8-3-8l-3 2.7Z"
139
  />
140
  </svg>
 
141
  </div>
142
  {/if}
143
  </div>
@@ -148,6 +149,6 @@
148
  @apply box-border z-0 border dark:border-gray-300 border-gray-500 aspect-[256/512];
149
  }
150
  .loading {
151
- @apply absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center;
152
  }
153
  </style>
 
115
  }
116
  </script>
117
 
118
+ <div class="relative overflow-clip flex flex-col justify-center items-center w-full h-full">
119
  {#if $resultImage}
120
  <img
121
  class="image {$generateHuman ? 'opacity-30' : ''}"
 
138
  d="M20 12a8 8 0 0 1-8 8v4a12 12 0 0 0 12-12h-4Zm-2-5.3a8 8 0 0 1 2 5.3h4c0-3-1.1-5.8-3-8l-3 2.7Z"
139
  />
140
  </svg>
141
+ <span class="text-xs">{predictStatus}</span>
142
  </div>
143
  {/if}
144
  </div>
 
149
  @apply box-border z-0 border dark:border-gray-300 border-gray-500 aspect-[256/512];
150
  }
151
  .loading {
152
+ @apply absolute top-0 left-0 right-0 bottom-0 flex flex-col justify-center items-center;
153
  }
154
  </style>