@@ -73,36 +73,35 @@ form > * {
73
73
}
74
74
</style >
75
75
76
- <div
76
+ <form
77
77
id =" drop-area"
78
- class ="br-8px {$$props .class || ' ' }"
78
+ class ="br-8px flex justify-between align-items-center py-1 px-1 {$$props .class || ' ' }"
79
79
class:highlighted
80
80
on:dragenter |preventDefault |stopPropagation ={highlight }
81
81
on:dragleave |preventDefault |stopPropagation ={unhighlight }
82
82
on:dragover |preventDefault |stopPropagation ={highlight }
83
83
on:drop |preventDefault |stopPropagation ={handleDrop }
84
+ class:column ={! isAboveMobile ()}
84
85
>
85
- <form class ="flex justify-between align-items-center my-1 px-1" class:column ={! isAboveMobile ()}>
86
- {#if ! uploading }
87
- <input
88
- bind:this ={fileInput }
89
- type =" file"
90
- id =" fileElem"
91
- multiple
92
- accept ={mimeType }
93
- disabled ={uploading }
94
- on:change ={() => handleFiles (fileInput .files )}
95
- />
96
- {/if }
97
- <label
98
- class =" mdc-button m-8px"
99
- for =" fileElem"
100
- class:custom-text-button ={raised }
101
- class:mdc-button--outlined ={outlined }
102
- class:disabled ={uploading }
103
- class:mdc-button--raised ={raised }>Choose files</label
104
- >
105
- <div class =" m-8px" >or drop files here</div >
106
- <i class =" material-icons icon m-8px" id =" upload-icon" >cloud_upload</i >
107
- </form >
108
- </div >
86
+ {#if ! uploading }
87
+ <input
88
+ bind:this ={fileInput }
89
+ type =" file"
90
+ id =" fileElem"
91
+ multiple
92
+ accept ={mimeType }
93
+ disabled ={uploading }
94
+ on:change ={() => handleFiles (fileInput .files )}
95
+ />
96
+ {/if }
97
+ <label
98
+ class =" mdc-button m-8px"
99
+ for =" fileElem"
100
+ class:custom-text-button ={raised }
101
+ class:mdc-button--outlined ={outlined }
102
+ class:disabled ={uploading }
103
+ class:mdc-button--raised ={raised }>Choose files</label
104
+ >
105
+ <div class =" m-8px" >or drop files here</div >
106
+ <i class =" material-icons icon m-8px" id =" upload-icon" >cloud_upload</i >
107
+ </form >
0 commit comments