Skip to content

Commit 8275cac

Browse files
author
Fabien MICHEL
authored
fix: file widget styling on mobile devices (#1303)
1 parent f5c13d4 commit 8275cac

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

filer/private/sass/components/_drag-and-drop.scss

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,13 @@ form .form-row {
287287
vertical-align: middle;
288288
margin: 0;
289289
}
290+
@media screen and (max-width: 1024px) {
291+
margin-left: 15px !important;
292+
}
290293
}
291294
}
292295
&.filer-dropzone-mobile {
293296
.filerFile {
294-
top: 40px;
295297
text-align: center;
296298
}
297299
.dz-message {
@@ -302,29 +304,34 @@ form .form-row {
302304
margin-top: 75px;
303305
}
304306
&.js-object-attached .filerFile {
305-
top: 32px;
306-
text-align: left;
307+
text-align: center;
307308
&.js-file-selector {
308309
@media screen and (max-width: $screen-tablet-filer) {
309310
.description_text {
310311
text-overflow: ellipsis;
311-
width: calc(100% - 150px);
312+
width: calc(100% - 200px);
312313
overflow: hidden;
313314
height: 20px;
314315
}
315316
}
316-
span:not(.choose-file):not(.edit-file), .dz-name {
317-
width: calc(100% - 145px);
317+
>span:not(.choose-file):not(.edit-file), .dz-name {
318+
width: calc(100% - 200px);
318319
}
319320
}
320321
}
322+
321323
}
322324
&.filer-dropzone-folder .filerFile {
323325
top: 32px !important;
324326
#id_folder_description_txt {
325327
float: left;
326328
}
327329
}
330+
331+
@media (max-width: 767px) {
332+
flex-grow: 1;
333+
}
334+
328335
}
329336
}
330337

0 commit comments

Comments
 (0)