Skip to content

Commit a8b03a7

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix(files): drag ghost image
Signed-off-by: skjnldsv <[email protected]> [skip ci]
1 parent 1df8454 commit a8b03a7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

apps/files/src/components/DragAndDropPreview.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ $stack-shift: 6px;
102102
display: flex;
103103
overflow: hidden;
104104
align-items: center;
105-
height: 44px;
106-
padding: 6px 12px;
105+
height: $size + $stack-shift;
106+
padding: $stack-shift $stack-shift * 2;
107107
background: var(--color-main-background);
108108
109109
&__icon,
110-
.files-list__row-icon {
110+
.files-list__row-icon-preview-container {
111111
display: flex;
112112
overflow: hidden;
113113
align-items: center;
@@ -119,7 +119,7 @@ $stack-shift: 6px;
119119
120120
&__icon {
121121
overflow: visible;
122-
margin-inline-end: 12px;
122+
margin-inline-end: $stack-shift * 2;
123123
124124
img {
125125
max-width: 100%;
@@ -138,13 +138,15 @@ $stack-shift: 6px;
138138
display: flex;
139139
140140
// Stack effect if more than one element
141-
.files-list__row-icon + .files-list__row-icon {
141+
// Max 3 elements
142+
> .files-list__row-icon-preview-container + .files-list__row-icon-preview-container {
142143
margin-top: $stack-shift;
143-
margin-inline-start: $stack-shift - $size;
144-
& + .files-list__row-icon {
144+
margin-inline-start: $stack-shift * 2 - $size;
145+
& + .files-list__row-icon-preview-container {
145146
margin-top: $stack-shift * 2;
146147
}
147148
}
149+
148150
// If we have manually clone the preview,
149151
// let's hide any fallback icons
150152
&:not(:empty) + * {

0 commit comments

Comments
 (0)