From d3900e39b6f30be690dec3da39e1661587146734 Mon Sep 17 00:00:00 2001 From: jessopb <36554050+jessopb@users.noreply.github.com> Date: Fri, 4 Nov 2022 10:44:36 -0400 Subject: [PATCH] fix comment area display (#7716) --- ui/component/commentCreate/view.jsx | 25 ------------------------- ui/component/commentsList/view.jsx | 15 ++++++++------- ui/component/fileThumbnail/index.js | 2 +- ui/scss/component/_card.scss | 2 +- ui/scss/component/_comments.scss | 6 ++++++ 5 files changed, 16 insertions(+), 34 deletions(-) diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index afbeac4b6..5f03bfa0f 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -363,31 +363,6 @@ export function CommentCreate(props: Props) { .catch(() => {}); }, [canReceiveFiatTip, claim.claim_id, claim.name, claim.signing_channel, stickerSelector]); - // LIVESTREAM ONLY - REMOVE - // Handle keyboard shortcut comment creation - // React.useEffect(() => { - // function altEnterListener(e: SyntheticKeyboardEvent<*>) { - // const inputRef = formFieldRef && formFieldRef.current && formFieldRef.current.input; - // - // if (inputRef && inputRef.current === document.activeElement) { - // // $FlowFixMe - // const isTyping = e.target.attributes['term']; - // - // if (((isLivestream && !isTyping) || e.ctrlKey || e.metaKey) && e.keyCode === KEYCODES.ENTER) { - // e.preventDefault(); - // buttonRef.current.click(); - // } - // } - // } - // - // window.addEventListener('keydown', altEnterListener); - // - // // removes the listener so it doesn't cause problems elsewhere in the app - // return () => { - // window.removeEventListener('keydown', altEnterListener); - // }; - // }, [isLivestream]); - // ************************************************************************** // Render // ************************************************************************** diff --git a/ui/component/commentsList/view.jsx b/ui/component/commentsList/view.jsx index aab41c2a6..e8b9f0282 100644 --- a/ui/component/commentsList/view.jsx +++ b/ui/component/commentsList/view.jsx @@ -366,9 +366,9 @@ const CommentActionButtons = (actionButtonsProps: ActionButtonsProps) => { const sortButtonProps = { activeSort: sort, changeSort }; return ( - <> +