-
Notifications
You must be signed in to change notification settings - Fork 317
Add spacing between composer snackbar and input row #6423
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1705,6 +1705,22 @@ public interface ChatComponentFactory { | |
| StreamSnackbar(snackbarData = params.data) | ||
| } | ||
|
|
||
| /** | ||
| * The snackbar shown above the message composer for validation errors and command-related | ||
| * events. | ||
| * | ||
| * Override this method to provide a custom snackbar appearance for the composer. | ||
| * | ||
| * @param params Parameters for this component. | ||
| */ | ||
| @Composable | ||
| public fun MessageComposerSnackbar(params: MessageComposerSnackbarParams) { | ||
| StreamSnackbar( | ||
| modifier = Modifier.padding(bottom = StreamTokens.spacingMd), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it OK to always pass |
||
| snackbarData = params.data, | ||
| ) | ||
| } | ||
|
|
||
| /** | ||
| * The default avatar component that displays an image from a URL or falls back to a placeholder. | ||
| * This component serves as the foundational UI for all avatar types. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1282,6 +1282,15 @@ public data class MessageComposerAudioRecordingHintParams( | |
| val data: SnackbarData, | ||
| ) | ||
|
|
||
| /** | ||
| * Parameters for [ChatComponentFactory.MessageComposerSnackbar]. | ||
| * | ||
| * @param data The snackbar data containing the message, variant, and optional action. | ||
| */ | ||
| public data class MessageComposerSnackbarParams( | ||
| val data: SnackbarData, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would it make sense to pass a |
||
| ) | ||
|
|
||
| /** | ||
| * Parameters for [ChatComponentFactory.Avatar]. | ||
| * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.