Skip to content

Reorg edit buttons#3248

Closed
chrissooo wants to merge 5 commits into
nextcloud:mainfrom
chrissooo:reorg-edit-buttons
Closed

Reorg edit buttons#3248
chrissooo wants to merge 5 commits into
nextcloud:mainfrom
chrissooo:reorg-edit-buttons

Conversation

@chrissooo

Copy link
Copy Markdown

This PR improves the usability of the note editor by moving the mode switching options (Edit, Preview, Rich Edit) from the title bar/menu directly into the editor view as Floating Action Buttons. This reorganization makes switching between modes more intuitive and accessible, especially during one-handed usage.

Changes

  • Simplified Title Bar: Removed mode switching options (Preview/Edit) from the top menu to reduce clutter.
  • Floating Action Buttons: Added ExtendedFloatingActionButton for "Preview" and "Rich Edit" directly within the editor fragments.
  • Mode Switching:
  • Added a "Simple Mode" button in Rich Edit mode.
  • Added a "Preview" button in the standard editor.
  • Updated the Preview fragment with a prominent edit button.
  • UI Refinement: Adjusted margins and positions for consistent button placement across different editor modes.
  • Unified Logic: Streamlined the mode switching implementation in SearchableBaseNoteFragment.

🖼️ Screenshots

🏚️ Before
No rch-edit-button:
old-1_1
old-1_2

rich-edit-button present:
old-1_3
old-1_4

🏡 After
No rch-edit-button:
new-1_2
new-1_3

rich-edit-button present:
new-1_5
new-1_6
new-1_7

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 24 complexity · 2 duplication

Metric Results
Complexity 24
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@chrissooo

Copy link
Copy Markdown
Author

To may bugs... Sorry

@chrissooo chrissooo closed this Jul 2, 2026
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.

1 participant