From 36f2b149d50632f355521f064ac80a517342a980 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 | 102 ++--- ui/component/settingAppearance/view.jsx | 95 ++--- ui/component/settingContent/view.jsx | 251 +++++++------ ui/component/settingSystem/view.jsx | 481 ++++++++++++------------ 4 files changed, 471 insertions(+), 458 deletions(-) diff --git a/ui/component/settingAccount/view.jsx b/ui/component/settingAccount/view.jsx index 4dce9bd1a..55b39e7aa 100644 --- a/ui/component/settingAccount/view.jsx +++ b/ui/component/settingAccount/view.jsx @@ -37,58 +37,62 @@ export default function SettingAccount(props: Props) { }, []); // eslint-disable-line react-hooks/exhaustive-deps return ( - - {isAuthenticated && ( + <> +
+

{__('Account')}

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