Skip to content

Commit

Permalink
allow chatbox container to fill its parent's width
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 29, 2024
1 parent 82395b2 commit ee7dd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/src/lib/components/ChatBoxContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@
export let disabled = false;
</script>

<div
class="fixed bg-background bottom-0 block w-full max-w-full max-sm:px-2 py-4 sm:max-w-xl lg:max-w-3xl"
>
<div class="bg-background block w-full max-sm:px-2 py-4">
<div class="block w-full items-center">
<ChatBox {showIcon} disabled={loading || disabled} bind:searchTerm on:keypress>
<svelte:fragment slot="icon-right" let:disabled>
<ChatBoxIcon iconType="send" {loading} {disabled} {searchTerm} on:click />
</svelte:fragment>
</ChatBox>

<div class="h-6"></div>
</div>
</div>
2 changes: 1 addition & 1 deletion app/src/lib/components/RenderExamples.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<div class="w-full h-full block mt-16">
<div class="w-full mx-auto md:w-4/5 mb-6 text-center">
<h3 class="text-2xl sm:text-3xl font-semibold">Start with one of the following</h3>
<h3 class="text-2xl sm:text-3xl font-semibold">Start with one</h3>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 pb-4">
{#each contentExamplesDict as [category, content]}
Expand Down

0 comments on commit ee7dd94

Please sign in to comment.