-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update padding and width of message component #727
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3c00eaf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
css/src/components/message.scss
Outdated
} | ||
|
||
&.message-sm.message-sender { | ||
width: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think width:auto
may not be the expected behavior here for all chats, and why is it scoped to message-sm
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it baked in here? what about using width-auto
?
site/src/patterns/chat.md
Outdated
@@ -52,6 +52,43 @@ For a copilot-friendly input, with a series of buttons placed within the visual | |||
</div> | |||
``` | |||
|
|||
## Copilot-like chat messages | |||
|
|||
To mimic a copilot chat experience, apply `message-sm` and `message-sender` to automatically fit to the width of the sender's message. For the AI responses (`message-sm`), the message will take up the full width. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The classes don't seem to match the behaviors here.
Link: preview
Update the width and the padding of the message component to match fluent 2. Changes only affect
message-sm
, so the padding changes do not apply to the regular sizedmessage
.Sources:
Fluent AI storybook: https://ai.fluentui.dev/?path=/docs/components-copilotchat-v2-usermessagev2--docs
Yonder's specs: https://www.figma.com/design/3TjpAzAIwxnPv4zpA1D2Iq/AI-Assistant-on-Microsoft-Learn?node-id=826-78921&t=r4kQ5xoqPCMfvMOE-1
Changes:
Contributor checklist