Skip to content

Commit 37812bc

Browse files
fix: made the label of filepond file uploader responsive (#249)
made the label of filepond file closes #175
1 parent d92127c commit 37812bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ for (let i = 0; i < generators.length; i++) {
150150
FilePond.create(getImageEntryElement, {
151151
imagePreviewMaxHeight: 200,
152152

153+
labelIdle:
154+
window.innerWidth < 768
155+
? '<span class="filepond--label-action">Browse</span>'
156+
: 'Drag & Drop your files or <span class="filepond--label-action"> Browse </span>',
157+
153158
onpreparefile: (fileItem, output): void => {
154159
// create a new image object
155160
const img = new Image();

0 commit comments

Comments
 (0)