💄 Optimize chat message cursor
This commit is contained in:
@@ -113,12 +113,15 @@ class MessageContent extends StatelessWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Flexible(
|
||||
child: MouseRegion(
|
||||
cursor: SystemMouseCursors.text,
|
||||
child: MarkdownTextContent(
|
||||
content: item.content ?? '*${item.type} has no content*',
|
||||
isSelectable: true,
|
||||
linesMargin: EdgeInsets.zero,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (translatedText?.isNotEmpty ?? false)
|
||||
...([
|
||||
ConstrainedBox(
|
||||
@@ -137,11 +140,14 @@ class MessageContent extends StatelessWidget {
|
||||
],
|
||||
).padding(vertical: 4),
|
||||
),
|
||||
MarkdownTextContent(
|
||||
MouseRegion(
|
||||
cursor: SystemMouseCursors.text,
|
||||
child: MarkdownTextContent(
|
||||
content: translatedText!,
|
||||
isSelectable: true,
|
||||
linesMargin: EdgeInsets.zero,
|
||||
),
|
||||
),
|
||||
]),
|
||||
],
|
||||
);
|
||||
|
@@ -161,6 +161,8 @@ class MessageItem extends HookConsumerWidget {
|
||||
: Colors.transparent;
|
||||
|
||||
return InkWell(
|
||||
mouseCursor: MouseCursor.defer,
|
||||
focusColor: Colors.transparent,
|
||||
onLongPress: showActionMenu,
|
||||
onSecondaryTap: showActionMenu,
|
||||
onTap: () {
|
||||
|
Reference in New Issue
Block a user