Skip to content

Commit

Permalink
Fluent: allow message bubble to grow past 450px up to 75%
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Oct 9, 2024
1 parent 63e5cb0 commit 0cc13a8
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
--webchat__bubble--block-padding: var(--webchat-spacingVerticalM);
--webchat__bubble--min-height: var(--webchat-bubble-minHeight);
--webchat__bubble--max-width: var(--webchat-bubble-maxWidth);
--webchat__bubble--min-width: var(--webchat-bubble-minWidth);

--webchat-bubble-maxWidth: var(--bubble-maxWidth, 450px);
--webchat-bubble-maxWidth: var(--bubble-maxWidth, min(max(450px, 75%), 100%));
--webchat-bubble-minWidth: var(--bubble-minWidth, auto);
--webchat-bubble-minHeight: var(--bubble-minHeight, 36px);
--webchat-externalLink-mask: var(
--externalLink-mask,
Expand All @@ -20,6 +22,7 @@
&:has(:global(.webchat__stacked-layout .webchat__bubble--from-user)) {
--webchat__bubble--background-color: var(--webchat-colorBrandBackground2);
--webchat__bubble--block-padding: var(--webchat-spacingVerticalS);
--webchat__bubble--min-width: auto;
}
}

Expand Down Expand Up @@ -134,7 +137,8 @@

/* Message bubble */
:global(.webchat-fluent) .activity-decorator :global(.webchat__stacked-layout .webchat__bubble) {
max-width: 100%;
max-width: var(--webchat__bubble--max-width);
min-width: var(--webchat__bubble--min-width);
overflow: visible;
}

Expand All @@ -148,7 +152,7 @@
box-shadow: var(--webchat__bubble--box-shadow);
box-sizing: border-box;
color: var(--webchat-colorNeutralForeground1);
max-width: var(--webchat__bubble--max-width);
max-width: 100%;
min-height: var(--webchat__bubble--min-height);
}

Expand Down Expand Up @@ -207,8 +211,7 @@

/* Message bubble latency loader */
:global(.webchat-fluent) .activity-decorator :global(.border-loader) {
max-width: 100%;
width: var(--webchat__bubble--max-width);
width: 100%;
}

/* Markdown links and citation links */
Expand Down

0 comments on commit 0cc13a8

Please sign in to comment.