💄 Optimize styles
This commit is contained in:
parent
272044a77e
commit
7c0c1ec94f
@ -237,7 +237,7 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
|
||||
var insertText = '';
|
||||
|
||||
if (suggestion.type == 'emotes') {
|
||||
insertText = '${suggestion.content} ';
|
||||
insertText = suggestion.content;
|
||||
startText = replaceText.replaceFirstMapped(
|
||||
RegExp(r':(?:([a-z0-9_+-]+)~)?([a-z0-9_+-]+)$'),
|
||||
(Match m) => insertText,
|
||||
@ -245,7 +245,7 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
|
||||
}
|
||||
|
||||
if (suggestion.type == 'users') {
|
||||
insertText = '${suggestion.content} ';
|
||||
insertText = suggestion.content;
|
||||
startText = replaceText.replaceFirstMapped(
|
||||
RegExp(r'(?:\s|^)@([a-z0-9_+-]+)$'),
|
||||
(Match m) => insertText,
|
||||
|
@ -100,12 +100,12 @@ class MarkdownTextContent extends StatelessWidget {
|
||||
width = 28;
|
||||
height = 28;
|
||||
}
|
||||
fit = BoxFit.fill;
|
||||
fit = BoxFit.contain;
|
||||
break;
|
||||
case 'attachments':
|
||||
const radius = BorderRadius.all(Radius.circular(8));
|
||||
return LimitedBox(
|
||||
maxHeight: 360,
|
||||
maxHeight: MediaQuery.of(context).size.width,
|
||||
child: ClipRRect(
|
||||
borderRadius: radius,
|
||||
child: AttachmentSelfContainedEntry(
|
||||
|
Loading…
Reference in New Issue
Block a user