diff --git a/package.json b/package.json index 2c51a477..3f45cc30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vocechat-web", - "version": "0.3.40", + "version": "0.3.41", "private": true, "homepage": "https://voce.chat", "dependencies": { diff --git a/src/routes/chat/ChannelChat/index.tsx b/src/routes/chat/ChannelChat/index.tsx index a4d70561..763fc555 100644 --- a/src/routes/chat/ChannelChat/index.tsx +++ b/src/routes/chat/ChannelChat/index.tsx @@ -112,7 +112,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) { } @@ -133,7 +133,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) { } header={ -
+
@@ -143,7 +143,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
} users={ -
+
{addVisible && (
@@ -166,7 +166,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
} > -
+ <> {hasMore ? ( ) : ( @@ -197,7 +197,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) { context: "channel" }); })} -
+ ); diff --git a/src/routes/chat/DMChat/index.tsx b/src/routes/chat/DMChat/index.tsx index 6d16f204..2a9c659d 100644 --- a/src/routes/chat/DMChat/index.tsx +++ b/src/routes/chat/DMChat/index.tsx @@ -65,13 +65,13 @@ const DMChat: FC = ({ uid = 0, dropFiles }) => { } header={ -
+
} > -
+ <> {hasMore ? : null} {[...feeds].map((mid, idx) => { const curr = messageData[mid]; @@ -87,7 +87,7 @@ const DMChat: FC = ({ uid = 0, dropFiles }) => { context: "user" }); })} -
+ ); }; diff --git a/src/routes/chat/Layout/LoginTip.tsx b/src/routes/chat/Layout/LoginTip.tsx index 3d192124..d6bd4657 100644 --- a/src/routes/chat/Layout/LoginTip.tsx +++ b/src/routes/chat/Layout/LoginTip.tsx @@ -23,8 +23,8 @@ const LoginTip = ({ placement = "chat" }: Props) => { }; return ( -
👋 diff --git a/src/routes/chat/Layout/index.tsx b/src/routes/chat/Layout/index.tsx index bc3b5da2..91173c83 100644 --- a/src/routes/chat/Layout/index.tsx +++ b/src/routes/chat/Layout/index.tsx @@ -106,31 +106,37 @@ const Layout: FC = ({ return ( <> {previewImage && } -
- {header} -
-
- {children} -
- {readonly ? ( - - ) : reachLimit ? ( - - ) : ( -
- -
- )} - {selects && } +
+
+ {header} +
+
+ {/* 消息流 */} +
+ {children} +
+ {/* 发送框 */} +
+ {readonly ? ( + + ) : reachLimit ? ( + + ) : ( +
+ +
+ )} + {selects && } +
- {users &&
{users}
} - {aside && }
+ {aside && } + {users &&
{users}
} {!readonly && isActive && ( )} -
+ ); };