mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-26 13:17:15 -05:00
markdown input center limit tooltip
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
Box,
|
||||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormHelperText,
|
||||
@@ -40,16 +41,18 @@ const MarkdownTextarea: React.FC<Props> = ({
|
||||
placeholder={placeholder}
|
||||
resize="vertical"
|
||||
/>
|
||||
<FormHelperText>
|
||||
<FormHelperText display="flex" alignItems="center">
|
||||
<LimitProgress
|
||||
currentLength={value.length}
|
||||
maxLength={maxLength}
|
||||
mr={3}
|
||||
/>
|
||||
{t("users;markdownPrompt")}{" "}
|
||||
<a href="/markdown" target="_blank" rel="noreferrer noopener">
|
||||
https://sendou.ink/markdown
|
||||
</a>
|
||||
<Box>
|
||||
{t("users;markdownPrompt")}{" "}
|
||||
<a href="/markdown" target="_blank" rel="noreferrer noopener">
|
||||
https://sendou.ink/markdown
|
||||
</a>
|
||||
</Box>
|
||||
</FormHelperText>
|
||||
<FormErrorMessage>{error?.message}</FormErrorMessage>
|
||||
</FormControl>
|
||||
|
||||
Reference in New Issue
Block a user