Skip to content

Commit

Permalink
fix: selector styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 3, 2024
1 parent 683e6ca commit 61a8f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/chat/ModelSelector/Selector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
export let items = [{ value: 'mango', label: 'Mango' }];
export let className = 'max-w-lg';
export let className = ' w-[32rem]';
let show = false;
Expand Down Expand Up @@ -202,7 +202,7 @@
</div>
</DropdownMenu.Trigger>
<DropdownMenu.Content
class=" z-40 w-full {className} justify-start rounded-lg bg-white dark:bg-gray-900 dark:text-white shadow-lg border border-gray-300/30 dark:border-gray-700/50 outline-none "
class=" z-40 w-full {className} max-w-[calc(100vw-1rem)] justify-start rounded-lg bg-white dark:bg-gray-900 dark:text-white shadow-lg border border-gray-300/30 dark:border-gray-700/50 outline-none "
transition={flyAndScale}
side={'bottom-start'}
sideOffset={4}
Expand All @@ -228,7 +228,7 @@
{#each filteredItems as item}
<button
aria-label="model-item"
class="flex w-full font-medium line-clamp-1 select-none items-center rounded-button py-2 pl-3 pr-1.5 text-sm text-gray-700 dark:text-gray-100 outline-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
class="flex w-full text-left font-medium line-clamp-1 select-none items-center rounded-button py-2 pl-3 pr-1.5 text-sm text-gray-700 dark:text-gray-100 outline-none transition-all duration-75 hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg cursor-pointer data-[highlighted]:bg-muted"
on:click={() => {
value = item.value;

Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/playground/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
info: model
}))}
bind:value={selectedModelId}
className="max-w-2xl"
className="w-[42rem]"
/>
</div>
</div>
Expand Down

0 comments on commit 61a8f73

Please sign in to comment.