@adminforth/upload 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -11,5 +11,5 @@ custom/preview.vue
11
11
  custom/tsconfig.json
12
12
  custom/uploader.vue
13
13
 
14
- sent 46,119 bytes received 134 bytes 92,506.00 bytes/sec
15
- total size is 45,637 speedup is 0.99
14
+ sent 46,160 bytes received 134 bytes 92,588.00 bytes/sec
15
+ total size is 45,671 speedup is 0.99
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="max-w-[480px]">
3
3
  <template v-if="url">
4
4
  <img
5
5
  v-if="contentType && contentType.startsWith('image')"
@@ -12,7 +12,7 @@
12
12
  </button>
13
13
 
14
14
  <label :for="inputId"
15
- class="flex flex-col px-3 items-center justify-center w-full h-64 border-2 border-dashed rounded-lg cursor-pointer dark:hover:bg-gray-800 hover:bg-gray-100 dark:hover:border-gray-500 dark:hover:bg-gray-600"
15
+ class="af-uploader flex flex-col px-3 items-center justify-center w-full h-64 border-2 border-dashed rounded-lg cursor-pointer dark:hover:bg-gray-800 hover:bg-gray-100 dark:hover:border-gray-500 dark:hover:bg-gray-600"
16
16
  @dragover.prevent="() => dragging = true"
17
17
  @dragleave.prevent="() => dragging = false"
18
18
  @drop.prevent="onFileChange"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="max-w-[480px]">
3
3
  <template v-if="url">
4
4
  <img
5
5
  v-if="contentType && contentType.startsWith('image')"
@@ -12,7 +12,7 @@
12
12
  </button>
13
13
 
14
14
  <label :for="inputId"
15
- class="flex flex-col px-3 items-center justify-center w-full h-64 border-2 border-dashed rounded-lg cursor-pointer dark:hover:bg-gray-800 hover:bg-gray-100 dark:hover:border-gray-500 dark:hover:bg-gray-600"
15
+ class="af-uploader flex flex-col px-3 items-center justify-center w-full h-64 border-2 border-dashed rounded-lg cursor-pointer dark:hover:bg-gray-800 hover:bg-gray-100 dark:hover:border-gray-500 dark:hover:bg-gray-600"
16
16
  @dragover.prevent="() => dragging = true"
17
17
  @dragleave.prevent="() => dragging = false"
18
18
  @drop.prevent="onFileChange"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",