From 23f7be9b541b216d4765fcc555577d31acc49289 Mon Sep 17 00:00:00 2001 From: "@wwwjim" Date: Wed, 9 Sep 2020 01:41:25 -0700 Subject: [PATCH] copy: fixes awkward copy on file uploads --- components/core/DataMeter.js | 14 ++++---- .../SlateMediaObjectSidebarDataManager.js | 2 +- components/sidebars/SidebarAddFileToBucket.js | 32 ++++++++++++++----- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/components/core/DataMeter.js b/components/core/DataMeter.js index 1a05f4dc..f47dc93f 100644 --- a/components/core/DataMeter.js +++ b/components/core/DataMeter.js @@ -36,7 +36,7 @@ const STYLES_ROW = css` display: flex; align-items: flex-end; justify-content: space-between; - font-family: ${Constants.font.text}; + font-family: ${Constants.font.code}; color: ${Constants.system.darkGray}; font-size: 10px; margin-top: 2px; @@ -75,11 +75,6 @@ export const DataMeterBar = (props) => { return ( -
- {Strings.bytesToSize(props.bytes)} of available{" "} - {Strings.bytesToSize(props.maximumBytes)} Used -
-
{
@@ -109,6 +104,11 @@ export const DataMeterBar = (props) => { export const DataMeter = (props) => { return (
+
+ {Strings.bytesToSize(props.stats.bytes)} of{" "} + {Strings.bytesToSize(props.stats.maximumBytes)} used +
+ {
- {props.slate.data.objects.length}{" "} + {Strings.zeroPad(props.slate.data.objects.length, 4)}{" "} {Strings.pluralize("object", props.slate.data.objects.length)}{" "} {!props.member ? ( ) : null} - - Add file - + {!this.props.fileLoading ? ( + + Add file + + ) : null}
@@ -161,6 +172,11 @@ export default class SidebarAddFileToBucket extends React.Component { return ( {p.name} + + + {Strings.bytesToSize(p.loaded)} /{" "} + {Strings.bytesToSize(p.total)} +