Skip to content

Commit 661488d

Browse files
committed
Fixed Material File Upload Preview Collection styles.
1 parent 9c9e1cb commit 661488d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/main/java/gwt/material/design/addins/client/fileuploader/MaterialUploadCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public MaterialUploadCollection() {
6363

6464
// Upload Information - Upload Name info
6565
nameWrapper.add(name);
66+
name.setTruncate(true);
67+
name.setWidth("200px");
6668
name.setDataAttribute("data-dz-name", "");
6769
nameWrapper.add(size);
6870
size.setDataAttribute("data-dz-size", "");
@@ -89,10 +91,8 @@ public MaterialUploadCollection() {
8991
btnClear.setId("dz-remove");
9092
btnClear.setBackgroundColor("transparent");
9193
btnClear.setShadow(0);
92-
btnClear.setWaves(WavesType.DEFAULT);
9394
btnClear.setCircle(true);
9495
btnClear.setTextColor("white");
95-
btnClear.setWaves(WavesType.DEFAULT);
9696
btnClear.addStyleName("ph");
9797
btnClear.setIconType(IconType.CLEAR);
9898
btnClear.setDataAttribute("data-dz-remove", "");

src/main/resources/gwt/material/design/addins/client/fileuploader/resources/css/dropzone.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
.preview-container .previews .zdrop-info{
8383
width: 220px;
8484
margin-right: 2%;
85-
margin-left: 40px;
85+
margin-left: 20px;
86+
padding-left: 24px;
8687
}
8788
.preview-container .previews .zdrop-info .preview-icon{
8889
background: #EFEFEF;
@@ -117,14 +118,15 @@
117118
line-height: 1;
118119
color: #C3C3C3;
119120
line-height: 1;
121+
margin-top: -16px;
120122
}
121123
.preview-container .previews .dz-error-message{
122124
font-size: 0.8em;
123125
color: #F44336;
124126
}
125127
.preview-container .previews .zdrop-info span:nth-child(2){
126128
color: #B5B5B5;
127-
margin-left: 16px;
129+
font-size: 0.8em;
128130
}
129131
.preview-container .previews .progress {
130132
margin-top: 4px;

src/main/resources/gwt/material/design/addins/client/fileuploader/resources/css/dropzone.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)