Skip to content

Commit 19f0079

Browse files
committed
Fixed visual discrepancy in Firefox
1 parent 44f4092 commit 19f0079

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

packages/module/src/Message/Message.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,15 +524,15 @@ export const MessageBase: FunctionComponent<MessageProps> = ({
524524
{!isLoading && !isEditable && actions && (
525525
<>
526526
{Array.isArray(actions) ? (
527-
<Flex gap={{ default: 'gapXs' }}>
527+
<div className="pf-chatbot__response-actions-groups">
528528
{actions.map((actionGroup, index) => (
529529
<ResponseActions
530530
key={index}
531531
actions={actionGroup.actions || actionGroup}
532532
persistActionSelection={persistActionSelection || actionGroup.persistActionSelection}
533533
/>
534534
))}
535-
</Flex>
535+
</div>
536536
) : (
537537
<ResponseActions actions={actions} persistActionSelection={persistActionSelection} />
538538
)}

packages/module/src/ResponseActions/ResponseActions.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@
2222
}
2323
}
2424

25+
.pf-chatbot__response-actions-groups {
26+
display: grid;
27+
grid-auto-flow: column;
28+
grid-auto-columns: max-content;
29+
gap: var(--pf-t--global--spacer--xs);
30+
31+
.pf-chatbot__response-actions {
32+
display: flex;
33+
}
34+
}
35+
2536
.pf-v6-c-button.pf-chatbot__button--response-action-clicked.pf-v6-c-button.pf-m-plain.pf-m-small {
2637
--pf-v6-c-button--m-plain--BackgroundColor: var(--pf-t--global--background--color--action--plain--alt--clicked);
2738
--pf-v6-c-button__icon--Color: var(--pf-t--global--icon--color--regular);

0 commit comments

Comments
 (0)