From 05ee27e045074bfcb39e120cea26ea005153e9cb Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 24 Oct 2023 23:23:51 +0800 Subject: [PATCH] Time to remove this auto-shrink text effect in composer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was fun… --- src/components/compose.css | 4 ++-- src/components/compose.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/compose.css b/src/components/compose.css index 8407966c..5531f85e 100644 --- a/src/components/compose.css +++ b/src/components/compose.css @@ -56,8 +56,8 @@ @media (min-width: 40em) { #compose-container textarea { - font-size: 150%; - font-size: calc(100% + 50% / var(--text-weight)); + /* font-size: 150%; + font-size: calc(100% + 50% / var(--text-weight)); */ max-height: 65vh; } } diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 73de42c7..e4fcf69c 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -1210,7 +1210,7 @@ const Textarea = forwardRef((props, ref) => { const [text, setText] = useState(ref.current?.value || ''); const { maxCharacters, performSearch = () => {}, ...textareaProps } = props; const snapStates = useSnapshot(states); - const charCount = snapStates.composerCharacterCount; + // const charCount = snapStates.composerCharacterCount; const customEmojis = useRef(); useEffect(() => { @@ -1442,7 +1442,7 @@ const Textarea = forwardRef((props, ref) => { style={{ width: '100%', height: '4em', - '--text-weight': (1 + charCount / 140).toFixed(1) || 1, + // '--text-weight': (1 + charCount / 140).toFixed(1) || 1, }} />