From 35769dede6aeb3ed25f4b9836fc33f7d169129dd Mon Sep 17 00:00:00 2001
From: jessopb <36554050+jessopb@users.noreply.github.com>
Date: Fri, 4 Nov 2022 08:42:36 -0400
Subject: [PATCH] =?UTF-8?q?separate=20out=20advanced=20textarea,=20fix=20c?=
=?UTF-8?q?omment=20channel=20selector=20width,=20a=E2=80=A6=20(#7634)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* separate out advanced textarea, fix comment channel selector width, add advanced text icon
* fix master conflicts
* fixes
* fix channel description edit
---
static/app-strings.json | 2 +
ui/component/channelForm/view.jsx | 4 +-
ui/component/collectionEdit/view.jsx | 4 +-
ui/component/comment/view.jsx | 4 +-
.../commentCreate/comment-create-header.jsx | 32 +++
ui/component/commentCreate/view.jsx | 47 ++--
ui/component/commentsList/view.jsx | 2 +-
.../form-field-area-advanced.jsx | 240 ++++++++++++++++++
.../common/form-components/form-field.jsx | 156 +-----------
ui/component/common/form.jsx | 1 +
ui/component/common/icon-custom.jsx | 11 +
ui/component/postEditor/view.jsx | 4 +-
ui/component/publishDescription/view.jsx | 4 +-
ui/constants/icons.js | 2 +
ui/page/report/view.jsx | 4 +-
ui/scss/component/_card.scss | 4 +-
ui/scss/component/_comment-create.scss | 51 ++--
ui/scss/component/_form-field.scss | 8 +-
ui/scss/component/_notification.scss | 10 +-
ui/scss/component/_textarea-suggestions.scss | 6 +-
20 files changed, 386 insertions(+), 210 deletions(-)
create mode 100644 ui/component/commentCreate/comment-create-header.jsx
create mode 100644 ui/component/common/form-components/form-field-area-advanced.jsx
diff --git a/static/app-strings.json b/static/app-strings.json
index 756121275..e014df315 100644
--- a/static/app-strings.json
+++ b/static/app-strings.json
@@ -2319,5 +2319,7 @@
"Your hub has blocked this content because it subscribes to the following blocking channel:": "Your hub has blocked this content because it subscribes to the following blocking channel:",
"Your hub has blocked access to this content do to a complaint received under the US Digital Millennium Copyright Act.": "Your hub has blocked access to this content do to a complaint received under the US Digital Millennium Copyright Act.",
"Autoplay Next is on.": "Autoplay Next is on.",
+ "This will be visible in a few minutes after you submit this form.": "This will be visible in a few minutes after you submit this form.",
+ "Anon --[used in <%anonymous% Reposted>]--": "Anon",
"--end--": "--end--"
}
diff --git a/ui/component/channelForm/view.jsx b/ui/component/channelForm/view.jsx
index 084fbbe64..236d42ae5 100644
--- a/ui/component/channelForm/view.jsx
+++ b/ui/component/channelForm/view.jsx
@@ -3,7 +3,7 @@ import * as MODALS from 'constants/modal_types';
import * as ICONS from 'constants/icons';
import React from 'react';
import classnames from 'classnames';
-import { FormField } from 'component/common/form';
+import { FormField, FormFieldAreaAdvanced } from 'component/common/form';
import Button from 'component/button';
import TagsSearch from 'component/tagsSearch';
import ErrorText from 'component/common/error-text';
@@ -376,7 +376,7 @@ function ChannelForm(props: Props) {
onChange={(e) => setParams({ ...params, title: e.target.value })}
maxLength={MAX_TITLE_LEN}
/>
-
-
{isEditing ? (