From 9a1787866187497baf9f38f97c5e93f93e501252 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 9 Aug 2021 10:22:16 +0800 Subject: [PATCH] Change style for card title I think it looks better to not place the title within the card's border when there are multiple cards in a page, like in the case of the new Settings Layout. Otherwise, it's hard to differentiate between title and settings-row. The proper method is to style Card itself, but this is a quick fix for the Settings Page PR. Will come back to it later. --- ui/component/settingAccount/view.jsx | 103 ++--- ui/component/settingAppearance/view.jsx | 97 ++--- ui/component/settingContent/view.jsx | 251 ++++++------ ui/component/settingSystem/view.jsx | 483 ++++++++++++------------ 4 files changed, 473 insertions(+), 461 deletions(-) diff --git a/ui/component/settingAccount/view.jsx b/ui/component/settingAccount/view.jsx index f8a94230e..c0593a09b 100644 --- a/ui/component/settingAccount/view.jsx +++ b/ui/component/settingAccount/view.jsx @@ -34,62 +34,65 @@ export default function SettingAccount(props: Props) { } }); } - // enterSettings(); @KP need to do this at each component, or just at Settings Page? }, []); // eslint-disable-line react-hooks/exhaustive-deps return ( - - {isAuthenticated && ( + <> +
+

{__('Account')}

+
+ + + {isAuthenticated && ( +
+ +
+ )} + + {/* @if TARGET='app' */}
- +
- )} + {/* @endif */} - {/* @if TARGET='app' */} -
- -
- {/* @endif */} + {/* @if TARGET='web' */} + {user && getStripeEnvironment() && ( + +