@budibase/bbui 2.12.1 → 2.12.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "2.12.1",
4
+ "version": "2.12.3",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -36,8 +36,8 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
39
- "@budibase/shared-core": "2.12.1",
40
- "@budibase/string-templates": "2.12.1",
39
+ "@budibase/shared-core": "2.12.3",
40
+ "@budibase/string-templates": "2.12.3",
41
41
  "@spectrum-css/accordion": "3.0.24",
42
42
  "@spectrum-css/actionbutton": "1.0.1",
43
43
  "@spectrum-css/actiongroup": "1.0.1",
@@ -104,5 +104,5 @@
104
104
  }
105
105
  }
106
106
  },
107
- "gitHead": "4ba2bc7442c259d1a5c69e0ae708b97d18fc7d4a"
107
+ "gitHead": "d82a3912eadf1074938c6d38b4fb1cbc61afe445"
108
108
  }
@@ -159,8 +159,10 @@
159
159
  {#if selectedImage.size}
160
160
  <div class="filesize">
161
161
  {#if selectedImage.size <= BYTES_IN_MB}
162
- {`${selectedImage.size / BYTES_IN_KB} KB`}
163
- {:else}{`${selectedImage.size / BYTES_IN_MB} MB`}{/if}
162
+ {`${(selectedImage.size / BYTES_IN_KB).toFixed(1)} KB`}
163
+ {:else}{`${(selectedImage.size / BYTES_IN_MB).toFixed(
164
+ 1
165
+ )} MB`}{/if}
164
166
  </div>
165
167
  {/if}
166
168
  {#if !disabled}
@@ -203,8 +205,8 @@
203
205
  {#if file.size}
204
206
  <div class="filesize">
205
207
  {#if file.size <= BYTES_IN_MB}
206
- {`${file.size / BYTES_IN_KB} KB`}
207
- {:else}{`${file.size / BYTES_IN_MB} MB`}{/if}
208
+ {`${(file.size / BYTES_IN_KB).toFixed(1)} KB`}
209
+ {:else}{`${(file.size / BYTES_IN_MB).toFixed(1)} MB`}{/if}
208
210
  </div>
209
211
  {/if}
210
212
  {#if !disabled}