Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix datatable and filepond #221

Merged
merged 2 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 33 additions & 2 deletions src/assets/scss/components/_table.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.table td, .table thead th {
vertical-align: middle;
vertical-align: middle !important;
}

.table:not(.table-borderless) thead th {
Expand All @@ -25,7 +25,38 @@
}

.dataTable-table {
@extend .table
@extend .table;

thead {
tr {
th {
padding: 0.5rem !important;
}
td {
padding: 0.5rem !important;
}
}
}
tbody {
tr {
th {
padding: 0.5rem !important;
}
td {
padding: 0.5rem !important;
}
}
}
tfoot {
tr {
th {
padding: 0.5rem !important;
}
td {
padding: 0.5rem !important;
}
}
}
}

.dataTable-container {
Expand Down
9 changes: 9 additions & 0 deletions src/assets/static/js/pages/filepond.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ FilePond.create(document.querySelector(".basic-filepond"), {
allowMultiple: false,
allowFileEncode: false,
required: false,
storeAsFile: true,
})

// Filepond: Multiple Files
Expand All @@ -25,6 +26,7 @@ FilePond.create(document.querySelector(".multiple-files-filepond"), {
allowMultiple: true,
allowFileEncode: false,
required: false,
storeAsFile: true,
})

// Filepond: With Validation
Expand All @@ -40,6 +42,7 @@ FilePond.create(document.querySelector(".with-validation-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})

// Filepond: ImgBB with server property
Expand Down Expand Up @@ -101,6 +104,7 @@ FilePond.create(document.querySelector(".imgbb-filepond"), {
request.send(formData)
},
},
storeAsFile: true,
})

// Filepond: Image Preview
Expand All @@ -116,6 +120,7 @@ FilePond.create(document.querySelector(".image-preview-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})

// Filepond: Image Crop
Expand All @@ -131,6 +136,7 @@ FilePond.create(document.querySelector(".image-crop-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})

// Filepond: Image Exif Orientation
Expand All @@ -146,6 +152,7 @@ FilePond.create(document.querySelector(".image-exif-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})

// Filepond: Image Filter
Expand All @@ -165,6 +172,7 @@ FilePond.create(document.querySelector(".image-filter-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})

// Filepond: Image Resize
Expand All @@ -185,4 +193,5 @@ FilePond.create(document.querySelector(".image-resize-filepond"), {
// Do custom type detection here and return with promise
resolve(type)
}),
storeAsFile: true,
})