Skip to content
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 drag shadow in Files app #10892

Merged
merged 2 commits into from
Aug 28, 2018
Merged

Fix drag shadow in Files app #10892

merged 2 commits into from
Aug 28, 2018

Conversation

danxuliu
Copy link
Member

Due to the increased 'z-index` in the content children the drag shadow was no longer visible.

Besides that, once the drag shadow was made visible again the file size overlapped the file name. This was caused by max-width: 0 set for file names, which was introduced in cbdaa8b; as it is necessary for the general file list that limit is removed only for file names in drag shadows.

How to test:
-Open the Files app
-Drag a file (press down with the mouse on the file and move it) anywhere

Expected result:
The file name and its size follow the cursor when it is moved

Actual result:
No element follows the cursor while the file is being dragged

The drag shadow is a sibling of "#content" so its z-index must be higher
than the z-index of the content children (navigation bar, app content
and app sidebar) to appear in front of them.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The general file list sets "max-width: 0" in the file names, which
causes the file names in the drag shadow to have no width for their
content and thus to overlap with the file size.

As that limit is needed for proper layout in the general file list it is
removed only for file names in drag shadows.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added bug design Design, UI, UX, etc. 3. to review Waiting for reviews feature: files regression labels Aug 27, 2018
@danxuliu danxuliu added this to the Nextcloud 14 milestone Aug 27, 2018
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Works as expected and the fix for Safari is still applying.

@skjnldsv skjnldsv merged commit 90581a4 into master Aug 28, 2018
@MorrisJobke MorrisJobke mentioned this pull request Aug 30, 2018
6 tasks
@MorrisJobke MorrisJobke deleted the fix-drag-shadow-in-files-app branch October 1, 2018 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. feature: files regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants