mishig HF staff commited on
Commit
1cd3833
1 Parent(s): 5c5d81b

fix height issue

Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -340,6 +340,7 @@
340
  {conversation}
341
  {viewCode}
342
  {hfToken}
 
343
  on:addMessage={() => addMessage(conversationIdx)}
344
  on:deleteMessage={e => deleteMessage(conversationIdx, e.detail)}
345
  />
 
340
  {conversation}
341
  {viewCode}
342
  {hfToken}
343
+ {compareActive}
344
  on:addMessage={() => addMessage(conversationIdx)}
345
  on:deleteMessage={e => deleteMessage(conversationIdx, e.detail)}
346
  />
src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte CHANGED
@@ -11,6 +11,7 @@
11
  export let loading: boolean;
12
  export let viewCode: boolean;
13
  export let hfToken: string;
 
14
 
15
  let shouldScrollToBottom = true;
16
  let isProgrammaticScroll = true;
@@ -63,7 +64,9 @@
63
  </script>
64
 
65
  <div
66
- class="flex max-h-[calc(100dvh-5.8rem)] flex-col overflow-y-auto overflow-x-hidden @container"
 
 
67
  class:animate-pulse={loading && !conversation.streaming}
68
  bind:this={messageContainer}
69
  on:scroll={() => {
 
11
  export let loading: boolean;
12
  export let viewCode: boolean;
13
  export let hfToken: string;
14
+ export let compareActive: boolean;
15
 
16
  let shouldScrollToBottom = true;
17
  let isProgrammaticScroll = true;
 
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)]'
69
+ : 'max-h-[calc(100dvh-5.8rem)]'}"
70
  class:animate-pulse={loading && !conversation.streaming}
71
  bind:this={messageContainer}
72
  on:scroll={() => {