-
Notifications
You must be signed in to change notification settings - Fork 69
[LG-5391] feat(chat-window): add compact variant #2989
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
[LG-5391] feat(chat-window): add compact variant #2989
Conversation
🦋 Changeset detectedLatest commit: 8df75b9 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 |
Size Change: 0 B Total Size: 1.95 MB ℹ️ View Unchanged
|
b9c7353
to
9081728
Compare
c9ae233
to
30fce2b
Compare
const { containerWidth, variant } = useLeafyGreenChatContext(); | ||
|
||
const isCompact = variant === Variant.Compact; | ||
const isMobile = !!containerWidth && containerWidth < breakpoints.Tablet; |
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.
Should we just return isMobileSize
from the context?
(Also nit that got called out in the nav a while back: technically it's isMobileSize
not isMobile
since we're not checking the UserAgent or input devices)
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.
That's a good callout, and I wish I made this change with the addition of variant
. Adding isMobileSize
to the context now will trigger a major change in chat components that rely on it, and I'd like to avoid that for now. I think we can revisit once we determine with design how we want to approach mobile responsiveness in the compact set of components
9081728
to
c479bda
Compare
30fce2b
to
8df75b9
Compare
…sageFeedStyles (#2988) * chore(message-feed): deprecate lgMessageFeedStyles * refactor(message-feed): testutils, styles, and ScrollToLatestButton * chore(message-feed): add react-intersection-observer dep * feat(message-feed): MessageFeed compact variant * docs(message-feed): README * chore(message-feed): changeset * fix: message spacing * [LG-5391] feat(chat-window): add compact variant (#2989) * feat(chat-window): ChatWindow compact variant * docs(chat-window): README * chore(chat-window): changeset
✍️ Proposed changes
ChatWindow
🎟 Jira ticket: LG-5391
✅ Checklist
For bug fixes, new features & breaking changes
pnpm changeset
and documented my changes🧪 How to test changes