From 8fe423ca4d4762f77d215c023980779d0ce3a369 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 1 May 2019 01:16:12 -0400 Subject: [PATCH] make alignment great again --- package.json | 2 +- src/ui/component/button/view.jsx | 7 +- src/ui/component/categoryList/view.jsx | 24 ++- src/ui/component/common/icon.jsx | 4 +- src/ui/component/header/view.jsx | 37 +++-- src/ui/component/subscribeMarkAsRead/view.jsx | 8 +- src/ui/component/uriIndicator/view.jsx | 2 +- src/ui/component/wunderbar/view.jsx | 2 +- src/ui/page/account/view.jsx | 2 - src/ui/page/help/view.jsx | 2 +- .../internal/user-subscriptions.jsx | 14 +- src/ui/redux/selectors/file_info.js | 98 ------------ src/ui/scss/all.scss | 1 + src/ui/scss/component/_button.scss | 102 ++++-------- src/ui/scss/component/_card.scss | 21 +-- src/ui/scss/component/_file-list.scss | 62 -------- src/ui/scss/component/_form-field.scss | 29 +++- src/ui/scss/component/_header.scss | 146 +++++++----------- src/ui/scss/component/_icon.scss | 10 ++ src/ui/scss/component/_media.scss | 31 +--- src/ui/scss/component/_tooltip.scss | 7 +- src/ui/scss/init/_gui.scss | 5 - src/ui/scss/init/_vars.scss | 4 +- yarn.lock | 8 +- 24 files changed, 185 insertions(+), 443 deletions(-) delete mode 100644 src/ui/scss/component/_file-list.scss create mode 100644 src/ui/scss/component/_icon.scss diff --git a/package.json b/package.json index 6784f3003..5932f48d7 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "@babel/register": "^7.0.0", "@hot-loader/react-dom": "16.8", "@lbry/color": "^1.0.2", - "@lbry/components": "^2.3.3", + "@lbry/components": "^2.7.0", "@types/three": "^0.93.1", "async-exit-hook": "^2.0.1", "babel-eslint": "^10.0.1", diff --git a/src/ui/component/button/view.jsx b/src/ui/component/button/view.jsx index 2005bc78d..75613c776 100644 --- a/src/ui/component/button/view.jsx +++ b/src/ui/component/button/view.jsx @@ -20,7 +20,6 @@ type Props = { description: ?string, type: string, button: ?string, // primary, secondary, alt, link - noPadding: ?boolean, // to remove padding and allow circular buttons iconColor?: string, iconSize?: number, constrict: ?boolean, // to shorten the button and ellipsis, only use for links @@ -39,6 +38,8 @@ class Button extends React.PureComponent { title, label, icon, + // This should rarely be used. Regular buttons should just use `icon` + // `iconRight` is used for the header (home) button with the LBRY icon and external links that are displayed inline iconRight, disabled, children, @@ -47,7 +48,6 @@ class Button extends React.PureComponent { description, button, type, - noPadding, iconColor, iconSize, constrict, @@ -57,9 +57,6 @@ class Button extends React.PureComponent { const combinedClassName = classnames( 'button', - { - 'button--no-padding': noPadding, - }, button ? { 'button--primary': button === 'primary', diff --git a/src/ui/component/categoryList/view.jsx b/src/ui/component/categoryList/view.jsx index 7a9011a4b..f3fd64f9b 100644 --- a/src/ui/component/categoryList/view.jsx +++ b/src/ui/component/categoryList/view.jsx @@ -272,20 +272,18 @@ class CategoryList extends PureComponent { return (
-
+

{categoryLink ? ( -
-
-
-
+ +

+ {showScrollButtons && (
diff --git a/src/ui/page/subscriptions/internal/user-subscriptions.jsx b/src/ui/page/subscriptions/internal/user-subscriptions.jsx index 1d86789d1..d96cda951 100644 --- a/src/ui/page/subscriptions/internal/user-subscriptions.jsx +++ b/src/ui/page/subscriptions/internal/user-subscriptions.jsx @@ -41,7 +41,7 @@ export default (props: Props) => {