Page MenuHomePhorge

Leave fullscreen editor when displaying "Upload File" and "Meme" dialogs
Needs ReviewPublic

Authored by aklapper on Aug 4 2024, 00:19.

Details

Summary

When being in fullscreen editor mode, the Upload File and Meme dialogs get opened behind the editor and thus are invisible.
Given the options listed in https://secure.phabricator.com/T8200, pop out of fullscreen when these buttons get clicked, as this is easiest to implement.

Closes T15901

Test Plan
  1. Go to any item which allows commenting, e.g. a task.
  2. In the toolbar of the textarea, click the Fullscreen Mode button.
  3. Click the Upload File or Meme button in the toolbar.
  4. Check if the dialog is displayed.

Diff Detail

Repository
rP Phorge
Branch
T15901fullscreenDialogs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1501
Build 1501: arc lint + arc unit

Event Timeline

aklapper requested review of this revision.Aug 4 2024, 00:19

Thanks. Have you already tried with just CSS? Any issue in that? Maybe something like this:

.jx-client-dialog {
  z-index:50;
}

Bonus point: double-check notifications

This entire method looks very hacky to me. I guess at the bottom of every useful UI, there's a bunch of if statements that map icon names to code.

webroot/rsrc/js/core/behavior-phabricator-remarkup-assist.js
307

Looks like you don't need to check edit_mode before setting it. Also note root vs edit_root?

Thanks. Have you already tried with just CSS? Any issue in that?

https://secure.phabricator.com/T8200#116651

Remove unneeded if statements.

Sorry, I do *not* understand the exact difference between root and edit_root - both make Phorge behave as expected (leave fullscreen)...

Untested but seems good to me, maybe nice to add a couple of

// Deactivate full-screen mode because it will cause sub-popup visibility problems.