victor HF staff commited on
Commit
f39959c
β€’
1 Parent(s): 556c447
src/lib/components/InferencePlayground/InferencePlaygroundConversationHeader.svelte CHANGED
@@ -59,20 +59,22 @@
59
  : 'mx-4'} flex h-11 flex-none items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none dark:border-gray-800 dark:bg-gray-800/70 dark:hover:bg-gray-800"
60
  >
61
  <Avatar orgName={nameSpace} size="md" />
62
- <button on:click={() => (modelSelectorOpen = true)}>{conversation.model.id}</button>
 
 
63
  <button
64
- class="ml-auto flex size-6 items-center justify-center rounded bg-gray-50 text-xs hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"
65
  on:click={() => dispatch("close", conversation.model.id)}
66
  >
67
  βœ•
68
  </button>
69
  <button
70
- class="group relative flex size-6 items-center justify-center rounded bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"
71
  >
72
  <IconCog />
73
  <GenerationConfig
74
  bind:conversation
75
- classNames="absolute top-7 min-w-[250px] z-10 right-3 bg-white dark:bg-gray-900 p-4 rounded-xl border border-gray-200 dark:border-gray-600 hidden group-focus:flex hover:flex"
76
  />
77
  </button>
78
  </div>
 
59
  : 'mx-4'} flex h-11 flex-none items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200/80 bg-white pl-3 pr-2 text-sm leading-none shadow-sm *:flex-none dark:border-gray-800 dark:bg-gray-800/70 dark:hover:bg-gray-800"
60
  >
61
  <Avatar orgName={nameSpace} size="md" />
62
+ <button class="!flex-1 self-stretch text-left hover:underline" on:click={() => (modelSelectorOpen = true)}
63
+ >{conversation.model.id}</button
64
+ >
65
  <button
66
+ class="flex size-6 items-center justify-center rounded bg-gray-50 text-xs hover:bg-gray-100 dark:bg-gray-700 dark:hover:bg-gray-600"
67
  on:click={() => dispatch("close", conversation.model.id)}
68
  >
69
  βœ•
70
  </button>
71
  <button
72
+ class="group relative flex size-6 items-center justify-center rounded bg-gray-50 hover:bg-gray-100 dark:bg-gray-700 dark:hover:bg-gray-600"
73
  >
74
  <IconCog />
75
  <GenerationConfig
76
  bind:conversation
77
+ classNames="absolute top-7 min-w-[250px] z-10 right-3 bg-white dark:bg-gray-900 p-4 rounded-xl border border-gray-200 dark:border-gray-800 hidden group-focus:flex hover:flex"
78
  />
79
  </button>
80
  </div>