Skip to content

Commit

Permalink
feat: feature component styling
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Nov 1, 2023
1 parent b956457 commit bcde6e2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/lib/components/chat/messages/AssistantMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,22 @@
bgColor="rgba(0, 0, 0, 0.05)"
message={showingMessage}
profilePic="/llama2.png"
/>
>
{#if feature !== Features.None}
<div class="feat-box">
{#if feature === Features.Weather}
<FeatWeather />
{/if}
</div>
{/if}
</BaseMessage>

<style>
.feat-box {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin: 6px auto;
}
</style>

0 comments on commit bcde6e2

Please sign in to comment.