From 00b23cbee4f6deeee69fa2b91db251e672879fe0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 5 Oct 2020 14:24:57 -0400 Subject: [PATCH] moar alignment --- static/app-strings.json | 6 +---- ui/component/publishDescription/view.jsx | 34 +++++++++++------------- ui/component/publishFile/view.jsx | 7 +++-- ui/component/router/view.jsx | 17 +++++++++++- ui/component/searchOptions/view.jsx | 8 +++--- 5 files changed, 42 insertions(+), 30 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index b1b490cbc..fe7d1bab9 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -174,12 +174,9 @@ "Files": "Files", "Channels": "Channels", "Everything": "Everything", - "File Types": "File Types", - "Videos": "Videos", "Audio": "Audio", - "Images": "Images", "Text": "Text", - "Other Files": "Other Files", + "Other": "Other", "Other Options": "Other Options", "Returned Results": "Returned Results", "Custom Code": "Custom Code", @@ -807,7 +804,6 @@ "How Fresh": "How Fresh", "Image": "Image", "Model": "Model", - "Other": "Other", "You can try refreshing to fix it. If you still have issues, your anti-virus software or firewall may be preventing startup.": "You can try refreshing to fix it. If you still have issues, your anti-virus software or firewall may be preventing startup.", "gaming, crypto": "gaming, crypto", "Autocomplete": "Autocomplete", diff --git a/ui/component/publishDescription/view.jsx b/ui/component/publishDescription/view.jsx index 5c9fafc52..a345e2886 100644 --- a/ui/component/publishDescription/view.jsx +++ b/ui/component/publishDescription/view.jsx @@ -22,24 +22,22 @@ function PublishDescription(props: Props) { return ( - - updatePublishForm({ description: !SIMPLE_SITE && advancedEditor ? value : value.target.value }) - } - quickActionLabel={!SIMPLE_SITE && (advancedEditor ? __('Simple Editor') : __('Advanced Editor'))} - quickActionHandler={toggleMarkdown} - textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION} - /> - + + updatePublishForm({ description: !SIMPLE_SITE && advancedEditor ? value : value.target.value }) + } + quickActionLabel={!SIMPLE_SITE && (advancedEditor ? __('Simple Editor') : __('Advanced Editor'))} + quickActionHandler={toggleMarkdown} + textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION} + /> } /> ); diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index 468ba63f1..fca783de8 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -77,7 +77,10 @@ function PublishFile(props: Props) { const RECOMMENDED_BITRATE = 6000000; const TV_PUBLISH_SIZE_LIMIT: number = 1073741824; - const UPLOAD_SIZE_MESSAGE = 'Lbry.tv uploads are limited to 1 GB. Download the app for unrestricted publishing.'; + const UPLOAD_SIZE_MESSAGE = __( + '%SITE_NAME% uploads are limited to 1 GB. Download the app for unrestricted publishing.', + { SITE_NAME } + ); const PROCESSING_MB_PER_SECOND = 0.5; const MINUTES_THRESHOLD = 30; const HOURS_THRESHOLD = MINUTES_THRESHOLD * 60; @@ -158,7 +161,7 @@ function PublishFile(props: Props) { if (oversized) { return (

- {__(UPLOAD_SIZE_MESSAGE)}{' '} + {UPLOAD_SIZE_MESSAGE}{' '}