Skip to content

Commit

Permalink
bugfix web 端聊天分享页面乱问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Nov 6, 2023
1 parent b90959f commit 024eacd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/page/component/chat/chat_share.dart
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ class _ChatShareScreenState extends State<ChatShareScreen> {
/// 获取聊天框的最大宽度
double _chatBoxMaxWidth(BuildContext context) {
var screenWidth = MediaQuery.of(context).size.width;
if (screenWidth >= CustomSize.maxWindowSize) {
return CustomSize.maxWindowSize;
if (screenWidth >= CustomSize.smallWindowSize) {
return CustomSize.smallWindowSize;
}

return screenWidth;
Expand Down
3 changes: 2 additions & 1 deletion lib/page/setting/setting_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ class _SettingScreenState extends State<SettingScreen> {

Future<List<SelectorItem<String>>> _defaultServerList() async {
return [
SelectorItem(const Text('默认服务器'), apiServerURL),
SelectorItem(const Text('官方正式服务器'), apiServerURL),
SelectorItem(const Text('本地开发机'), 'http://localhost:8080'),
];
}

Expand Down

0 comments on commit 024eacd

Please sign in to comment.