-
Notifications
You must be signed in to change notification settings - Fork 91
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
Able to show outiline in readonly mode #2920
Able to show outiline in readonly mode #2920
Conversation
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.
Code looks good.
However if i click an entry in the outline it does not move to that heading. That's not what i'd expect because the entry is highlighted and looks like a link to me.
I also managed to trigger some funny behavior when clicking at the end of headings. I was not able to produce the same behavior on the editable view of the owner of the file.
Bildschirmaufzeichnung vom 15.09.2022, 08:19:51.webm
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.
Nice! Another point in addition to @susnux:
The "x" close button is a bit floating in the air. Would be better if it’s directly after the "Outline" text instead of floating on the right.
Thanks a lot for looking into this @vinicius73 ❤️ Unfortunately using the menubar space in read-only mode conflicts with Collectives, where we already use this space for Collectives-specific content (last changed user and timestamp, in future also things like count of backlinks and attachments). Sorry, I don't have a quick solution for this. Maybe we should discuss it in our next team call? |
What do you think about make able to inject a slot that space and expose some editor methods? So that way you will be able to not only inject more options also access internal editor methods in a safe way |
@jancborchardt what do you think about this? |
That would be the way to go indeed 😊 |
e8c7382
to
76fbc1e
Compare
@vinicius73 it's better if the x is on the right if the text, so that the text is left-aligned with the headings below. :) Just not all the way over away from the text. |
/backport to stable25 |
master is 26 |
@vinicius73 could you take a quick look into rebasing the PR on latest master? Seems like something went wrong and unrelated commits got pulled in 😉 |
34d4a6b
to
230473d
Compare
@mejo- I've rewritten the all PR, check if you can please |
Signed-off-by: Vinicius Reis <[email protected]>
230473d
to
103d8ef
Compare
Signed-off-by: Jonas <[email protected]>
Nice, thanks a lot @vinicius73. Works like expected. I removed the |
/compile |
Signed-off-by: nextcloud-command <[email protected]>
The backport to stable25 failed. Please do this backport manually. |
/backport 103d8ef,7d9a18b15c56608fa38492ec9d7f877130922488 to stable25 |
Readonly
Peek.2022-09-14.18-03.mp4
Public
Peek.2022-09-14.17-01.mp4