Skip to content

Commit

Permalink
chore: adjust chat ui
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Jun 13, 2024
1 parent 6be9c00 commit 8f0f633
Show file tree
Hide file tree
Showing 14 changed files with 110 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
"chatId": chatId,
},
id: streamMessageId,
createdAt: DateTime.now().millisecondsSinceEpoch,
text: '',
);
}
Expand All @@ -393,7 +394,7 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
author: User(id: message.authorId),
id: messageId,
text: message.content,
createdAt: message.createdAt.toInt(),
createdAt: message.createdAt.toInt() * 1000,
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class TextMessageText extends StatelessWidget {
fontSize: 16,
fontWeight: FontWeight.w500,
lineHeight: 1.5,
maxLines: 2000,
maxLines: null,
selectable: true,
color: AFThemeExtension.of(context).textColor,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ class FlowyText extends StatelessWidget {
);

if (selectable) {
child = SelectableText(
text,
maxLines: maxLines,
textAlign: textAlign,
style: textStyle,
child = IntrinsicHeight(
child: SelectableText(
text,
maxLines: maxLines,
textAlign: textAlign,
style: textStyle,
),
);
} else {
child = Text(
Expand Down
37 changes: 11 additions & 26 deletions frontend/appflowy_tauri/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/appflowy_tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ collab-user = { version = "0.2" }
# Run the script:
# scripts/tool/update_client_api_rev.sh new_rev_id
# ⚠️⚠️⚠️️
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "9d3d28ad8937712cc688c20be7c0ee6e4d14a168" }
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "b0a48494e58cdd4e9ff9b48e190c7d93d071af0b" }

[dependencies]
serde_json.workspace = true
Expand Down
37 changes: 11 additions & 26 deletions frontend/appflowy_web/wasm-libs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/appflowy_web/wasm-libs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ yrs = "0.18.8"
# Run the script:
# scripts/tool/update_client_api_rev.sh new_rev_id
# ⚠️⚠️⚠️️
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "9d3d28ad8937712cc688c20be7c0ee6e4d14a168" }
client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "b0a48494e58cdd4e9ff9b48e190c7d93d071af0b" }

[profile.dev]
opt-level = 0
Expand Down
Loading

0 comments on commit 8f0f633

Please sign in to comment.