-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
web: don't remove properties pane when editor is refocused #7780
web: don't remove properties pane when editor is refocused #7780
Conversation
24b3a7b
to
f664c61
Compare
apps/web/src/stores/editor-store.ts
Outdated
if (toggleTableOfContents !== false) { | ||
this.toggleTableOfContents(false); | ||
} |
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.
In what case we want to toggle table of contents with properties? I think this can be removed as it's not needed anymore. There is a dedicated function to toggle TOC already which should be used. The fact that this did no affect any other code shows it isn't used anywhere in the repo.
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.
Whenever properties is toggled, it closes the table of contents, this ensures that only one pane is open at a time
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.
Let's keep the existing behavior from the stable app and:
- If you open TOC, it should close properties if already opened
- If you close properties, do nothing with the TOC.
- If you open properties, do nothing with the TOC.
From what I can tell, it is a bug in the beta app because the stable version behaves correctly (it doesn't close properties on opening TOC though which we should fix here). The TOC never closes unless you close it by clicking X.
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.
Just trying the beta app again, it seems that the UI has changed quite a bit and now properties and TOC are part of the editor, not floating on top. Both show in the same container, are they stacked on top or replaced?
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.
They are separate panes
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.
@ammarahm-ed do let me know what needs to be done
onRequestFocus: () => { | ||
toggleProperties(false, false); | ||
}, |
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.
Instead of all these changes, let's just remove this "close on focus" logic altogether.
f664c61
to
cfcb08a
Compare
Signed-off-by: 01zulfi <[email protected]>
cfcb08a
to
7fa4860
Compare
Signed-off-by: 01zulfi [email protected]
Closes #7770