victor HF staff commited on
Commit
60c7941
1 Parent(s): 7849c46

resizeTextAreas on window resize

Browse files
src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte CHANGED
@@ -63,6 +63,8 @@
63
  $: viewCode, resizeMessageTextAreas();
64
  </script>
65
 
 
 
66
  <div
67
  class="flex flex-col overflow-y-auto overflow-x-hidden @container {compareActive
68
  ? 'max-h-[calc(100dvh-5.8rem-2.5rem-75px)] md:max-h-[calc(100dvh-5.8rem-2.5rem)]'
 
63
  $: viewCode, resizeMessageTextAreas();
64
  </script>
65
 
66
+ <svelte:window on:resize={resizeMessageTextAreas} />
67
+
68
  <div
69
  class="flex flex-col overflow-y-auto overflow-x-hidden @container {compareActive
70
  ? 'max-h-[calc(100dvh-5.8rem-2.5rem-75px)] md:max-h-[calc(100dvh-5.8rem-2.5rem)]'