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

Desktop: Resolves #10025 Toggle external editing button overlaps with bold button fixes #10055

Conversation

JanhaviAlekar
Copy link
Contributor

@JanhaviAlekar JanhaviAlekar commented Mar 5, 2024

Copy link
Contributor

github-actions bot commented Mar 5, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@JanhaviAlekar
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Mar 5, 2024
@laurent22
Copy link
Owner

The reason this bug hasn't been fixed for a long time is that it's indeed hard to fix. Anybody can do what you've done and add a useless gap next to the button:

image

@JanhaviAlekar
Copy link
Contributor Author

I'm sorry if I interpreted it wrong. But can you suggest how to move forward with it if this is not the way to fix it.

@laurent22
Copy link
Owner

No, sorry, I don't know. The button size needs to be dynamic - small when there's just an icon and large when there's the text+icon. I'm going to close the pull request for now but feel free to try again

@laurent22 laurent22 closed this Mar 5, 2024
@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented Mar 5, 2024

I'm sorry if I interpreted it wrong. But can you suggest how to move forward with it if this is not the way to fix it.

One way forward could be to adjust styles.leftExtraToolbarContainer.width in packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/styles/index.ts based on the global state watchedNoteFiles. Note that watchedNoteFiles is what is currently used to update the external editing button's title.

Note that NoteEditor already has access to watchedNoteFiles, so one solution could be to pass it to TinyMCE by adding a property to NoteBodyEditorProps.

@JanhaviAlekar JanhaviAlekar deleted the Toggle-External-editing-button-overlaps-with-bold-button branch March 6, 2024 10:26
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.

Toggle External Editing STOP button overlaps the BOLD button in Rich Text Editor
3 participants