diff --git a/.eslintrc.json b/.eslintrc.json index 69a674b7a..56319633d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,6 +33,7 @@ "printWidth": 100, "singleQuote": true }], - "func-names": ["warn", "as-needed"] + "func-names": ["warn", "as-needed"], + "jsx-a11y/label-has-for": 0 } } diff --git a/src/renderer/component/common/form-components/form-field.jsx b/src/renderer/component/common/form-components/form-field.jsx index 39f57dc9a..212982299 100644 --- a/src/renderer/component/common/form-components/form-field.jsx +++ b/src/renderer/component/common/form-components/form-field.jsx @@ -74,7 +74,11 @@ export class FormField extends React.PureComponent { {error} )} -
+
{prefix && (
diff --git a/src/renderer/page/backup/view.jsx b/src/renderer/page/backup/view.jsx index 3163c0d29..5fee3c0d4 100644 --- a/src/renderer/page/backup/view.jsx +++ b/src/renderer/page/backup/view.jsx @@ -12,7 +12,7 @@ type Props = { class BackupPage extends React.PureComponent { render() { const { daemonSettings } = this.props; - const { lbryum_wallet_dir } = daemonSettings; + const { lbryum_wallet_dir: lbryumWalletDir } = daemonSettings; const noDaemonSettings = Object.keys(daemonSettings).length === 0; @@ -35,24 +35,16 @@ class BackupPage extends React.PureComponent { 'Currently, there is no automatic wallet backup. If you lose access to these files, you will lose your credits permanently.' )}

-
-

{__( 'However, it is fairly easy to back up manually. To backup your wallet, make a copy of the folder listed below:' )}

-
- {lbryum_wallet_dir} -
-
-
+

{lbryumWalletDir}

- - {__( - 'Access to these files are equivalent to having access to your credits. Keep any copies you make of your wallet in a secure place.' - )} - + {__( + 'Access to these files are equivalent to having access to your credits. Keep any copies you make of your wallet in a secure place.' + )}

For more details on backing up and best practices,{' '} diff --git a/src/renderer/page/discover/view.jsx b/src/renderer/page/discover/view.jsx index abe0c0f56..28adf330c 100644 --- a/src/renderer/page/discover/view.jsx +++ b/src/renderer/page/discover/view.jsx @@ -18,7 +18,7 @@ class DiscoverPage extends React.PureComponent { const { featuredUris, fetchingFeaturedUris } = this.props; const hasContent = typeof featuredUris === 'object' && Object.keys(featuredUris).length; const failedToLoad = !fetchingFeaturedUris && !hasContent; - // lbry://fortnite-top-stream-moments-nickatnydte#27395875d68e9d3e53be46edf36d622aa8284441 + return ( {hasContent && diff --git a/src/renderer/page/rewards/view.jsx b/src/renderer/page/rewards/view.jsx index a25b06ec4..f79e806e8 100644 --- a/src/renderer/page/rewards/view.jsx +++ b/src/renderer/page/rewards/view.jsx @@ -81,12 +81,13 @@ class RewardsPage extends React.PureComponent { if (!daemonSettings.share_usage_data) { return ( -

+
+
{__('Disabled')}

{__( 'Rewards are currently disabled for your account. Turn on diagnostic data sharing, in' )}{' '} -

diff --git a/src/renderer/scss/_gui.scss b/src/renderer/scss/_gui.scss index 3a6bdae70..70e31aead 100644 --- a/src/renderer/scss/_gui.scss +++ b/src/renderer/scss/_gui.scss @@ -138,6 +138,7 @@ dd { p { font-family: 'metropolis-medium'; + padding: $spacing-vertical * 1/3 0; } .page { diff --git a/src/renderer/scss/_vars.scss b/src/renderer/scss/_vars.scss index 0f0b4e797..246104151 100644 --- a/src/renderer/scss/_vars.scss +++ b/src/renderer/scss/_vars.scss @@ -31,6 +31,9 @@ $large-breakpoint: 1760px; --color-light-blue: #49b2e2; --color-red: #e2495e; --color-yellow: #fbd55e; + --color-green: #399483; + --color-green-light: #effbe4; + --color-green-blue: #2ec1a8; --color-divider: #e3e3e3; --text-color: var(--color-black); @@ -123,6 +126,9 @@ $large-breakpoint: 1760px; --card-radius: 2px; --card-margin: $spacing-vertical * 2/3; --card-wallet-color: var(--text-color-inverse); + --success-msg-color: var(--color-green); + --success-msg-border: var(--color-green-blue); + --success-msg-bg: var(--color-green-light); /* File Tile Card */ --file-tile--media-size: 60px; diff --git a/src/renderer/scss/component/_button.scss b/src/renderer/scss/component/_button.scss index 8b19a4be9..e4e08977d 100644 --- a/src/renderer/scss/component/_button.scss +++ b/src/renderer/scss/component/_button.scss @@ -114,7 +114,7 @@ button:disabled { text-transform: uppercase; } -.btn:not(.btn--no-padding):not(.btn--link) { +.btn:not(.btn--no-padding):not(.btn--link):not(.btn--no-style) { .btn__content { padding: 0 8px; display: flex; diff --git a/src/renderer/scss/component/_card.scss b/src/renderer/scss/component/_card.scss index 5cb1baae9..eacc25491 100644 --- a/src/renderer/scss/component/_card.scss +++ b/src/renderer/scss/component/_card.scss @@ -282,7 +282,7 @@ } .card:last-of-type { - margin-right: $spacing-vertical * 2/3; + margin-right: $spacing-width; } } @@ -336,12 +336,8 @@ display: inline-block; vertical-align: top; overflow: visible; - // -- three cards on a screen - // -- minus 12px for 1/3 of the page padding (36px) - // -- minus 20px for the card's margin - // Ideally we should be able to use $spacing-width / 3, but I'm not sure - // how inside the calc function - width: calc((100% / 3) - 12px - 20px); + // 35 px to handle to padding between cards + width: calc((100% / 3) - 35px); } .card:not(:first-of-type) { @@ -354,11 +350,20 @@ @media only screen and (min-width: $medium-breakpoint) { .card { - width: calc((100% / 4) - 12px - 20px); + // 31 px to handle to padding between cards + width: calc((100% / 4) - 31px); } } } +.card__success-msg { + border-left: 2px solid var(--success-msg-border); + color: var(--success-msg-color); + background-color: var(--success-msg-bg); + padding: $spacing-vertical * 1/3; + margin: $spacing-vertical * 1/3 0; +} + .card__media--autothumb { color: red !important; } diff --git a/src/renderer/scss/component/_form-field.scss b/src/renderer/scss/component/_form-field.scss index b00ca1c30..f05b802df 100644 --- a/src/renderer/scss/component/_form-field.scss +++ b/src/renderer/scss/component/_form-field.scss @@ -51,6 +51,10 @@ input.paginate-channel { width: 35px; } + + &.form-field--auto-height { + height: auto; + } } .form-field__help,