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
fix: use body element if not the fullscreen #11222
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.
2 things to check :
- Event propagation where modals are involved ( like
@event
or v-on ) - CSS dependency ( using :deep to affect a modal style), as the modal may be out of scope.
Otherwise, should be fine.
Elements inside |
Fixed for NewMessage in ChatView: It provides container to children components (EmojiPicker, autocomplete, NcActions) when mounted, and won't update anymore. |
Found a drawback: if you go to Fullscreen with open modal, it will stay attached to the
|
As it is causing re-render only when container changes, sounds like a good solution. |
NcActions works fine, as they're re-rendered and re-mounted each time the container is changed |
5f13ac1
to
a81a5bd
Compare
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.
Nothing is blocking, can't find another drawback.
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.
Approved again
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
82ab9c9
to
182faca
Compare
Fixup squash and rebased |
/backport to stable28 |
@nickvergessen backport to stable27 and stable26 ? |
My take would be no 🤔 |
/backport to stable27 |
The backport to stable27 failed. Please do this backport manually. # Switch to the target branch and update it
git checkout stable27
git pull origin stable27
# Create the new backport branch
git checkout -b fix/foo-stable27
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts. Resolve them.
git cherry-pick abc123
# Push the cherry pick commit to the remote repository and open a pull request
git push origin fix/foo-stable27 Error: Unknown error More info at https://docs.nextcloud.com/server/latest/developer_manual/getting_started/development_process.html#manual-backport |
@DorraJaouad ^ can you take care of the backport while Maksim is out? |
☑️ Resolves
Should be safe to use a
body
element while you're not in the fullscreen (as tested with ViewerOverlayCallView).Also as long as we won't register a fullscreen state in sidebar (for Files page, for example), modal will end up in
body
, so above the Viewer embeddedWarning
Behaviour change: as NcModal component has more reasons against being re-mounted, then pros, hotkey 'F' to toggle Fulscreen mode is now disabled when any modal is open 368e43a
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🚧 Tasks
🏁 Checklist