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

Overflow of logos of action items in Lexical Playground #4096

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

gaurab-khanal
Copy link
Contributor

@gaurab-khanal gaurab-khanal commented Mar 10, 2023

Changed the position to inherit from absolute to fix this issue.

Fixes #4095

@vercel
Copy link

vercel bot commented Mar 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
lexical ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 11, 2023 at 5:20AM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 11, 2023 at 5:20AM (UTC)

@facebook-github-bot
Copy link
Contributor

Hi @gaurab-khanal!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

Copy link
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

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

On the expected issue picture it looks like the TreeView is slightly decoupled from the editor itself. I would probably a padding at the end of the editor that gives enough room for these actions, WDYT?

@zurfyx zurfyx changed the title Overflow of logos of action items in Lexical Playground. #4095 fixed Overflow of logos of action items in Lexical Playground Mar 10, 2023
@gaurab-khanal
Copy link
Contributor Author

On the expected issue picture it looks like the TreeView is slightly decoupled from the editor itself. I would probably a padding at the end of the editor that gives enough room for these actions, WDYT?

I am just a beginner who is learning different technologies and to gain more practical real world experiences I am contributing to Open-Source projects. If you think your approach can fix the issue more effectively I would be happy to work on that. But I can't get your approach how can I fix with that approach? Can you guide me?

@gaurab-khanal
Copy link
Contributor Author

On the expected issue picture it looks like the TreeView is slightly decoupled from the editor itself. I would probably a padding at the end of the editor that gives enough room for these actions, WDYT?

I got it. Should I remove the previous changes and add new changes? I mean adding padding to the editor.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 10, 2023
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@zurfyx
Copy link
Member

zurfyx commented Mar 10, 2023

Thank you, I like this, just one more thing. The padding should live on the contenteditable as otherwise when clicking on it the editor loses selection. Could you iterate on this please?

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@gaurab-khanal
Copy link
Contributor Author

Thank you, I like this, just one more thing. The padding should live on the contenteditable as otherwise when clicking on it the editor loses selection. Could you iterate on this please?

Can you elaborate more? As a beginner I can't understand what you are talking about.

@zurfyx
Copy link
Member

zurfyx commented Mar 10, 2023

Thank you, I like this, just one more thing. The padding should live on the contenteditable as otherwise when clicking on it the editor loses selection. Could you iterate on this please?

Can you elaborate more? As a beginner I can't understand what you are talking about.

The padding should be part of the contenteditable div, not the parent. This way when clicking on the padded part the selection (cursor) will move to the editor and will be able to continue typing. Currently, when I click on the 40px you added I have to click back again on the contenteditable to add more content

…fixed (padding changed in contenteditable)
@gaurab-khanal
Copy link
Contributor Author

Thank you, I like this, just one more thing. The padding should live on the contenteditable as otherwise when clicking on it the editor loses selection. Could you iterate on this please?

Can you elaborate more? As a beginner I can't understand what you are talking about.

The padding should be part of the contenteditable div, not the parent. This way when clicking on the padded part the selection (cursor) will move to the editor and will be able to continue typing. Currently, when I click on the 40px you added I have to click back again on the contenteditable to add more content

I made the changes. Can you review it?

@gaurab-khanal
Copy link
Contributor Author

@zurfyx Are you available?

Copy link
Member

@zurfyx zurfyx left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for iterating on this!

@zurfyx zurfyx merged commit a24369f into facebook:main Mar 13, 2023
@gaurab-khanal
Copy link
Contributor Author

LGTM, thank you for iterating on this!

You are welcome

@zurfyx zurfyx mentioned this pull request Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Overflow of logos of action items in Lexical Playground.
3 participants