Skip to content

fix(widget): hide sidebar in edit mode#5514

Merged
elzody merged 2 commits intomainfrom
fix/hide-widget-sidebar
Mar 26, 2026
Merged

fix(widget): hide sidebar in edit mode#5514
elzody merged 2 commits intomainfrom
fix/hide-widget-sidebar

Conversation

@elzody
Copy link
Collaborator

@elzody elzody commented Mar 24, 2026

Summary

When going into edit mode inside of an office widget, the sidebar should be closed to increase the viewing area and keep the UI free of clutter. In this PR this is achieved by sending a post message when the edit mode is enabled and the file is embedded in a widget. It might also be worth it to collapse the notebook bar in some cases.

I wanted to accomplish this in a cleaner way, like setting a UI default, but it seems those are overridden by the user's settings and the state is remembered. The post message solution is what I was left with.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody elzody requested a review from mejo- March 24, 2026 18:50
@elzody elzody self-assigned this Mar 24, 2026
@elzody elzody requested a review from juliusknorr as a code owner March 24, 2026 18:50
@elzody elzody added the 3. to review Ready to be reviewed label Mar 24, 2026
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Tested and works well. Thanks a lot for tackling this ❤️

elzody added 2 commits March 26, 2026 11:24
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody elzody force-pushed the fix/hide-widget-sidebar branch from 2a4ba05 to 6f56c70 Compare March 26, 2026 15:24
@elzody
Copy link
Collaborator Author

elzody commented Mar 26, 2026

/backport to stable33 please

@elzody
Copy link
Collaborator Author

elzody commented Mar 26, 2026

/backport to stable32 please

@elzody elzody merged commit b03d2bc into main Mar 26, 2026
48 checks passed
@elzody elzody deleted the fix/hide-widget-sidebar branch March 26, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants