Skip to content

[stable12] Fix drag shadow not visible when dragging a file on a narrow screen - #7666

Merged
MorrisJobke merged 1 commit into
stable12from
stable12-7527-fix-drag-shadow-not-visible-when-dragging-a-file-on-a-narrow-screen
Jan 9, 2018
Merged

[stable12] Fix drag shadow not visible when dragging a file on a narrow screen#7666
MorrisJobke merged 1 commit into
stable12from
stable12-7527-fix-drag-shadow-not-visible-when-dragging-a-file-on-a-narrow-screen

Conversation

@danxuliu

Copy link
Copy Markdown
Member

Backport of #7527

When a file from the file list is dragged a drag shadow (a copy of the
file row that follows the cursor position) is created. The drag shadow
element is created as a direct child of the body element, so it needs a
higher "z-index" than the one used for the file list to be visible.
In narrow screens the "#app-content" uses a "z-index" of 1000 in order
to be visible over the "#navigation-bar" when they overlap, so the
"z-index" of the drag shadow must be at least 1000 to be visible over
the file list.
Instead of updating the hardcoded "z-index" it was removed and replaced
by CSS rules for ".dragshadow" elements to ease theming.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@codecov

codecovBot commented Jan 2, 2018

Copy link
Copy Markdown

Codecov Report

Merging #7666 into stable12 will not change coverage.
The diff coverage is n/a.

@@ Coverage Diff @@## stable12 #7666 +/- ##
===========================================
Coverage 53.93% 53.93% Complexity 22712 22712 ===========================================
Files 1385 1385 Lines 86996 86996 Branches 1330 1330 ===========================================
Hits 46919 46919 Misses 40077 40077

@MorrisJobkeMorrisJobke mentioned this pull request Jan 8, 2018
13 tasks

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and works 👍

@MorrisJobke
MorrisJobke merged commit bbaa765 into stable12Jan 9, 2018
@MorrisJobke
MorrisJobke deleted the stable12-7527-fix-drag-shadow-not-visible-when-dragging-a-file-on-a-narrow-screen branch January 9, 2018 10:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@danxuliu@rullzer@MorrisJobke