Time to remove this auto-shrink text effect in composer
It was fun…
This commit is contained in:
parent
576dcf7701
commit
05ee27e045
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}}
|
||||
/>
|
||||
</text-expander>
|
||||
|
|
Loading…
Reference in a new issue