Skip to content

Commit

Permalink
Merge pull request #142 from rebeccaalpert/alignment
Browse files Browse the repository at this point in the history
fix(ChatbotWelcomePrompt): Sample prompts should be a row on fullscreen
  • Loading branch information
nicolethoen authored Sep 13, 2024
2 parents 874cae2 + cf175f6 commit a2846ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 16 additions & 0 deletions packages/module/src/ChatbotWelcomePrompt/ChatbotWelcomePrompt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,20 @@
.pf-chatbot__question {
color: var(--pf-t--global--text--color--subtle);
}

.pf-chatbot__prompt-suggestions > * {
flex: 1;
}
}

// ============================================================================
// Chatbot Display Mode - Fullscreen
// ============================================================================
.pf-chatbot--fullscreen {
.pf-chatbot--layout--welcome {
.pf-chatbot__prompt-suggestions {
flex-direction: row;
align-items: baseline;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ export const ChatbotWelcomePrompt: React.FunctionComponent<ChatbotWelcomePromptP
<span className="pf-chatbot__question">{description}</span>
</Content>

<Flex
className="pf-chatbot__prompt-suggestions"
direction={{ default: 'row', lg: 'column' }}
gap={{ default: 'gapLg' }}
>
<Flex className="pf-chatbot__prompt-suggestions" direction={{ default: 'column' }} gap={{ default: 'gapLg' }}>
{prompts?.map((prompt) => (
<Card key={prompt.message} className="pf-chatbot__prompt-suggestion" isClickable>
<CardHeader
Expand Down

0 comments on commit a2846ca

Please sign in to comment.