fix(readonly-bar): Clean up read-only menu bar to behave consistently with normal menu bar#7560
Conversation
max-nextcloud
left a comment
There was a problem hiding this comment.
Thanks a lot for looking into this. 💙
I just had a brief look at the code and so far it looks good. There's just one aspect that needs to be addressed.
I'll try this out later.
| <ReadonlyBar | ||
| v-if="readOnly || (openReadOnlyEnabled && !editMode)" | ||
| class="text-editor--readonly-bar"> | ||
| <slot name="readonlyBar"> |
There was a problem hiding this comment.
This slot is used by the collectives app to alter the content of the read only bar. I think we need to keep it so that collectives can continue doing that.
There was a problem hiding this comment.
You're right, sorry about that! I readded the slot. However, it's now a direct child of the MainContainer component, which is the same setup as here:
text/src/components/Editor/MarkdownContentEditor.vue
Lines 11 to 19 in f405547
Do you think that could be an issue? Personally, I feel it’s better to let the ReadonlyBar handle its own CSS styling.
20ee01a to
07b3809
Compare
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
… with normal menu bar Signed-off-by: Peter Birrer <peter.birrer@optonic.com>
07b3809 to
152e1cb
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7560 +/- ##
==========================================
+ Coverage 52.93% 59.77% +6.83%
==========================================
Files 503 502 -1
Lines 43829 38966 -4863
Branches 1129 1128 -1
==========================================
+ Hits 23203 23291 +88
+ Misses 20517 15567 -4950
+ Partials 109 108 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
|
/backport to stable32 |
|
/backport to stable31 |
📝 Summary
This pull request addresses several issues related to read-only mode:
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)