ui: 修正消息發送框的位置, 修正側邊列表的顯示, 修正 MesageContainer 的 marginBottom 為 20px
This commit is contained in:
@@ -65,11 +65,11 @@ export default function App() {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
// 最近聊天
|
// 最近聊天
|
||||||
(navigationItemSelected == "Recents") &&
|
|
||||||
<mdui-list style={{
|
<mdui-list style={{
|
||||||
width: "35%",
|
width: "35%",
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
paddingRight: '10px'
|
paddingRight: '10px',
|
||||||
|
display: navigationItemSelected == "Recents" ? null : 'none'
|
||||||
}}>
|
}}>
|
||||||
{
|
{
|
||||||
recentsList.map((v) =>
|
recentsList.map((v) =>
|
||||||
@@ -84,11 +84,11 @@ export default function App() {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
// 联系人列表
|
// 联系人列表
|
||||||
(navigationItemSelected == "Contacts") &&
|
|
||||||
<mdui-list style={{
|
<mdui-list style={{
|
||||||
width: "35%",
|
width: "35%",
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
paddingRight: '10px'
|
paddingRight: '10px',
|
||||||
|
display: navigationItemSelected == "Contacts" ? null : 'none'
|
||||||
}}>
|
}}>
|
||||||
<mdui-collapse accordion value={Object.keys(contactsMap)[0]}>
|
<mdui-collapse accordion value={Object.keys(contactsMap)[0]}>
|
||||||
{
|
{
|
||||||
@@ -136,7 +136,11 @@ export default function App() {
|
|||||||
<mdui-top-app-bar-title>Title</mdui-top-app-bar-title>
|
<mdui-top-app-bar-title>Title</mdui-top-app-bar-title>
|
||||||
<mdui-button-icon icon="more_vert"></mdui-button-icon>
|
<mdui-button-icon icon="more_vert"></mdui-button-icon>
|
||||||
</mdui-top-app-bar>
|
</mdui-top-app-bar>
|
||||||
<div>
|
<div style={{
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "column",
|
||||||
|
height: "100%",
|
||||||
|
}}>
|
||||||
<div style={{
|
<div style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ export default function MessageContainer({ children, style, ...props } = {}) {
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
justifyContent: 'flex-end',
|
justifyContent: 'flex-end',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
marginBottom: '10px',
|
marginBottom: '20px',
|
||||||
|
height: "100%",
|
||||||
...style,
|
...style,
|
||||||
}}
|
}}
|
||||||
{...props}>
|
{...props}>
|
||||||
|
|||||||
Reference in New Issue
Block a user