Skip to content
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

186 style scroll chat composer #189

Open
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

gyasi-eco
Copy link
Collaborator

@gyasi-eco gyasi-eco commented Oct 17, 2023

The Chat Composer button is positioned to the left and sits underneath the text input which makes it an awkward location for a submission button. This PR fixes that issue along with increasing the height of the soft phone and adding a scrollbar to the softphone since the Chat Composer grows vertically with the content inside of it.
Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

add changeset and update changeset version
Copy link
Collaborator

@ayyrickay ayyrickay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to proceed, but I don't think we can push this styling. It seems like maybe lexical/Paste should anticipate that there's going to be a button in its context and react accordingly. Instead we have two internal components with no clear way to style them (as you've identified.)

editor.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
}

return (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the CustomizationProvider (below) which should allow us to do a better job of styling. As-is, I don't think we can ship it, it looks way too odd to me. But maybe we can target the individual elements better to style them in a way that makes more sense.

"turbo": "^1.2.16"
},
"dependencies": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These dependencies should be in the UI package, not up at the top - these aren't necessary for the dev-phone-plugin


<Grid gutter={"space20"} marginBottom="space40">
<Column span={12}>
<ChatComposer
Copy link
Collaborator

@ayyrickay ayyrickay Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simplified the use of Paste here, I don't think we can componentize our way out of this. I have no idea how lexical manages this - I tried using Flexbox and the button just floats left. But there must be some way to manage it sensibly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants