Skip to content

Commit

Permalink
fix: rem value and condition to display regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
g-francesca committed Jul 25, 2024
1 parent d71287d commit 3b0b1dc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
.source {
position: relative;
overflow: hidden;
width: 195px;
width: pxToRem(195);
flex-grow: 0;
flex-shrink: 0;
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class OramaChatAssistentMessage {
<orama-markdown content={this.interaction.response} />

<div class={{ 'message-actions': true, hidden: this.interaction.status !== TAnswerStatus.done }}>
{this.interaction.latest && this.interaction.status === 'done' && (
{this.interaction.latest && (
<orama-button
type="button"
variant="icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ export class OramaChatMessagesContainer {
return (
<Host>
<div class="messages-container">
{this.interactions.map((interaction, index) => (
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
<div key={`interaction-${index}`}>
{this.interactions.map((interaction) => (
<div key={interaction.interactionId}>
<orama-chat-user-message interaction={{ ...interaction }} />
<orama-chat-assistent-message interaction={{ ...interaction }} />
{interaction.latest && interaction.status === 'done' && interaction.relatedQueries?.length && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| `colorScheme` | `color-scheme` | | `"dark" \| "light" \| "system"` | `'light'` |
| `facetProperty` | `facet-property` | | `string` | `undefined` |
| `open` | `open` | | `boolean` | `false` |
| `resultMap` | -- | | `{ title?: string; description?: string; path?: string; section?: string; }` | `{}` |
| `resultMap` | -- | | `{ section?: string; title?: string; path?: string; description?: string; }` | `{}` |
| `themeConfig` | -- | | `{ typography?: DeepPartial<{ '--font-primary': string; }>; colors?: DeepPartial<{ light: { '--text-color-primary': string; '--text-color-secondary': string; '--text-color-teriary': string; '--text-color-inactive': string; '--background-color-primary': string; '--background-color-secondary': string; '--background-color-tertiary': string; '--background-color-fourth': string; '--border-color-primary': string; '--border-color-secondary': string; '--border-color-inactive': string; '--icon-color-primary': string; '--icon-color-secondary': string; '--icon-color-tertiary': string; '--icon-color-inactive': string; '--icon-color-accent': string; }; dark: { '--text-color-primary': string; '--text-color-secondary': string; '--text-color-teriary': string; '--text-color-inactive': string; '--background-color-primary': string; '--background-color-secondary': string; '--background-color-tertiary': string; '--background-color-fourth': string; '--border-color-primary': string; '--border-color-secondary': string; '--border-color-inactive': string; '--icon-color-primary': string; '--icon-color-secondary': string; '--icon-color-tertiary': string; '--icon-color-inactive': string; '--icon-color-accent': string; }; system: {}; }>; }` | `undefined` |


Expand Down

0 comments on commit 3b0b1dc

Please sign in to comment.