From b0e60bb60dd11f3fe182875ec882b2448792b904 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 5 May 2022 16:56:34 -0500 Subject: [PATCH] SoapboxConfig: improve layout --- app/soapbox/features/edit_profile/index.tsx | 8 +- app/soapbox/features/soapbox_config/index.tsx | 79 ++++++++++--------- app/styles/forms.scss | 4 - 3 files changed, 45 insertions(+), 46 deletions(-) diff --git a/app/soapbox/features/edit_profile/index.tsx b/app/soapbox/features/edit_profile/index.tsx index e7c607a6a..647bb98e3 100644 --- a/app/soapbox/features/edit_profile/index.tsx +++ b/app/soapbox/features/edit_profile/index.tsx @@ -11,7 +11,9 @@ import { useAppSelector, useAppDispatch, useOwnAccount, useFeatures } from 'soap import { normalizeAccount } from 'soapbox/normalizers'; import resizeImage from 'soapbox/utils/resize_image'; -import { Button, Column, Form, FormActions, FormGroup, Input, Textarea, HStack } from '../../components/ui'; +import { Button, Column, Form, FormActions, FormGroup, Input, Textarea } from '../../components/ui'; +import HStack from '../../components/ui/hstack/hstack'; +import Stack from '../../components/ui/stack/stack'; import Streamfield, { StreamfieldComponent } from '../../components/ui/streamfield/streamfield'; import ProfilePreview from './components/profile-preview'; @@ -394,7 +396,7 @@ const EditProfile: React.FC = () => { {/* HACK: wrap these checkboxes in a .simple_form container so they get styled (for now) */} {/* Need a either move, replace, or refactor these checkboxes. */} -
+ {features.followRequests && ( } @@ -448,7 +450,7 @@ const EditProfile: React.FC = () => { onChange={handleCheckboxChange('accepts_email_list')} /> )} -
+ {features.profileFields && ( { return (
-
+
- -
-
- } - value={soapbox.brandColor} - onChange={handleColorChange(['brandColor'], (color) => color.hex)} - /> - } - value={soapbox.accentColor} - onChange={handleColorChange(['accentColor'], (color) => color.hex)} - /> -
-
- - - {/* value)} - themeMode={soapbox.defaultSettings.get('themeMode')} - intl={intl} - /> */} -
+ + + + } + value={soapbox.brandColor} + onChange={handleColorChange(['brandColor'], (color) => color.hex)} + /> + } + value={soapbox.accentColor} + onChange={handleColorChange(['accentColor'], (color) => color.hex)} + /> +
+
+ + + {/* value)} + themeMode={soapbox.defaultSettings.get('themeMode')} + intl={intl} + /> */}
-
- } - name='logo' - hint={
-
- + + + + } + name='logo' + hint={ + { /> - + { /> )} - + } diff --git a/app/styles/forms.scss b/app/styles/forms.scss index 6c82a4739..901853323 100644 --- a/app/styles/forms.scss +++ b/app/styles/forms.scss @@ -36,10 +36,6 @@ code { .simple_form { .input { - + .input { - margin-top: 20px; - } - &.hidden { margin: 0; }