radames HF staff commited on
Commit
9709301
β€’
1 Parent(s): a6ba5a1
Files changed (1) hide show
  1. frontend/src/routes/+page.svelte +2 -2
frontend/src/routes/+page.svelte CHANGED
@@ -1,6 +1,6 @@
1
  <script lang="ts">
2
  import { onMount } from 'svelte';
3
- import scrollIntoView from 'scroll-into-view-if-needed'
4
 
5
  import type { ColorsPrompt, ColorsImage } from '$lib/types';
6
  import { randomSeed, extractPalette, uploadImage } from '$lib/utils';
@@ -154,7 +154,7 @@
154
  }
155
  function remix(e: CustomEvent) {
156
  prompt = e.detail.prompt;
157
- scrollIntoView(promptInputEl, { behavior: 'smooth' });
158
  }
159
  </script>
160
 
 
1
  <script lang="ts">
2
  import { onMount } from 'svelte';
3
+ import scrollIntoView from 'scroll-into-view-if-needed';
4
 
5
  import type { ColorsPrompt, ColorsImage } from '$lib/types';
6
  import { randomSeed, extractPalette, uploadImage } from '$lib/utils';
 
154
  }
155
  function remix(e: CustomEvent) {
156
  prompt = e.detail.prompt;
157
+ scrollIntoView(promptInputEl, { behavior: 'smooth', scrollMode: 'if-needed' });
158
  }
159
  </script>
160