mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-25 06:05:47 +00:00
chore: hide appflowy avatar in ai chat (#7817)
This commit is contained in:
parent
77b7912aed
commit
f83375b002
@ -22,7 +22,6 @@ import 'package:flutter_chat_core/flutter_chat_core.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:universal_platform/universal_platform.dart';
|
||||
|
||||
import '../chat_avatar.dart';
|
||||
import '../layout_define.dart';
|
||||
import 'ai_change_model_bottom_sheet.dart';
|
||||
import 'ai_message_action_bar.dart';
|
||||
@ -126,18 +125,12 @@ class ChatAIBottomInlineActions extends StatelessWidget {
|
||||
children: [
|
||||
child,
|
||||
const VSpace(16.0),
|
||||
Padding(
|
||||
padding: const EdgeInsetsDirectional.only(
|
||||
start: DesktopAIChatSizes.avatarSize +
|
||||
DesktopAIChatSizes.avatarAndChatBubbleSpacing,
|
||||
),
|
||||
child: AIMessageActionBar(
|
||||
message: message,
|
||||
showDecoration: false,
|
||||
onRegenerate: onRegenerate,
|
||||
onChangeFormat: onChangeFormat,
|
||||
onChangeModel: onChangeModel,
|
||||
),
|
||||
AIMessageActionBar(
|
||||
message: message,
|
||||
showDecoration: false,
|
||||
onRegenerate: onRegenerate,
|
||||
onChangeFormat: onChangeFormat,
|
||||
onChangeModel: onChangeModel,
|
||||
),
|
||||
const VSpace(32.0),
|
||||
],
|
||||
@ -210,11 +203,6 @@ class _ChatAIMessageHoverState extends State<ChatAIMessageHover> {
|
||||
showWhenUnlinked: false,
|
||||
link: layerLink,
|
||||
targetAnchor: Alignment.bottomLeft,
|
||||
offset: const Offset(
|
||||
DesktopAIChatSizes.avatarSize +
|
||||
DesktopAIChatSizes.avatarAndChatBubbleSpacing,
|
||||
0,
|
||||
),
|
||||
child: Align(
|
||||
alignment: Alignment.topLeft,
|
||||
child: MouseRegion(
|
||||
@ -501,13 +489,10 @@ class _WrapIsSelectingMessage extends StatelessWidget {
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
if (isSelectingMessages)
|
||||
ChatSelectMessageIndicator(isSelected: isSelected)
|
||||
else
|
||||
SelectionContainer.disabled(
|
||||
child: const ChatAIAvatar(),
|
||||
),
|
||||
const HSpace(DesktopAIChatSizes.avatarAndChatBubbleSpacing),
|
||||
if (isSelectingMessages) ...[
|
||||
ChatSelectMessageIndicator(isSelected: isSelected),
|
||||
const HSpace(DesktopAIChatSizes.avatarAndChatBubbleSpacing),
|
||||
],
|
||||
Expanded(
|
||||
child: IgnorePointer(
|
||||
ignoring: isSelectingMessages,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user