chore(markdown): optimize title style

This commit is contained in:
molvqingtai 2023-10-15 05:14:36 +08:00
parent 66fb140db1
commit 51b562b7bd
2 changed files with 6 additions and 4 deletions

View file

@ -13,8 +13,10 @@ const Markdown: FC<MarkdownProps> = ({ children = '', className }) => {
return ( return (
<ReactMarkdown <ReactMarkdown
components={{ components={{
h1: ({ className, ...props }) => <h1 className={cn('mb-2 mt-0 text-2xl', className)} {...props} />, h1: ({ className, ...props }) => (
h2: ({ className, ...props }) => <h2 className={cn('mb-2 mt-0', className)} {...props} />, <h1 className={cn('mb-2 mt-0 font-semibold text-2xl', className)} {...props} />
),
h2: ({ className, ...props }) => <h2 className={cn('mb-2 mt-0 font-semibold', className)} {...props} />,
img: ({ className, alt, ...props }) => ( img: ({ className, alt, ...props }) => (
<img className={cn('my-2 max-w-[50%]', className)} alt={alt} {...props} /> <img className={cn('my-2 max-w-[50%]', className)} alt={alt} {...props} />
), ),

View file

@ -34,8 +34,8 @@ const Footer: FC = () => {
send(messageInputDomain.command.ClearCommand()) send(messageInputDomain.command.ClearCommand())
} }
const handleEmojiSelect = (value: string) => { const handleEmojiSelect = (emoji: string) => {
send(messageInputDomain.command.InputCommand(messageText + value)) send(messageInputDomain.command.InputCommand(`${messageText}${emoji}`))
} }
return ( return (