diff --git a/client/index.html b/client/index.html index f661430..49bfb58 100644 --- a/client/index.html +++ b/client/index.html @@ -66,6 +66,12 @@ body { display: flex; margin: 0 0 0 0; + height: 100%; + } + + html { + margin: 0 0 0 0; + height: 100%; } /* 防止小尺寸图片模糊*/ diff --git a/client/ui/App.jsx b/client/ui/App.jsx index 5901ee1..1c10a3f 100644 --- a/client/ui/App.jsx +++ b/client/ui/App.jsx @@ -80,6 +80,18 @@ export default function App() { nickName: "Maya Fey", } ], + 测试分组114514: [ + { + userId: 0, + avatar: "https://www.court-records.net/mugshot/aa6-004-maya.png", + nickName: "麻油衣酱", + }, + { + userId: 0, + avatar: "https://www.court-records.net/mugshot/aa6-004-maya.png", + nickName: "Maya Fey", + } + ], }) const [navigationItemSelected, setNavigationItemSelected] = React.useState('Recents') @@ -95,6 +107,10 @@ export default function App() { width: 'calc(var(--whitesilk-window-width) - 80px)', height: 'var(--whitesilk-window-height)', }}> + { + // 移动端用 页面调试 + (new URL(location.href).searchParams.get('debug') == 'true') && + } @@ -106,21 +122,33 @@ export default function App() { { // 侧边列表 } - - { - navigationItemSelected == "Recents" ? - // 最近聊天 + { + // 最近聊天 + (navigationItemSelected == "Recents") && + + { recentsList.map((v) => - ) : - // 联系人列表 + ) + } + + } + { + // 联系人列表 + (navigationItemSelected == "Contacts") && + + { Object.keys(contactsMap).map((v) => <> {v} @@ -133,8 +161,12 @@ export default function App() { } ) - } - + } + + } + { + // 分割线 + }
Title - - - Test - - - Test - - - Test - - - Test - - - Test - - - Test - - - Test - - - Test - - +
+ + + Test + + + Test + + + Test + + + Test + + + Test + + + Test + + + Test + + + Test + + +
- - + ) } \ No newline at end of file diff --git a/client/ui/chat/MessageContainer.jsx b/client/ui/chat/MessageContainer.jsx index e73f985..edcc26c 100644 --- a/client/ui/chat/MessageContainer.jsx +++ b/client/ui/chat/MessageContainer.jsx @@ -9,8 +9,6 @@ export default function MessageContainer({ children, style, ...props } = {}) { flexDirection: 'column', justifyContent: 'flex-end', alignItems: 'center', - paddingTop: '10px', - paddingBottom: '14px', ...style, }} {...props}>