ui: 列表搜索框扩充微调

This commit is contained in:
CrescentLeaf
2025-11-29 12:52:00 +08:00
parent 6f6dd3bfac
commit c2f99f5c62
3 changed files with 6 additions and 3 deletions

View File

@@ -54,13 +54,14 @@ export default function AllChatsList({
overflowY: 'auto', overflowY: 'auto',
paddingRight: '10px', paddingRight: '10px',
paddingLeft: '10px', paddingLeft: '10px',
paddingTop: '0',
display: display ? undefined : 'none', display: display ? undefined : 'none',
height: '100%', height: '100%',
width: '100%', width: '100%',
}} {...props}> }} {...props}>
<mdui-text-field icon="search" type="search" clearable ref={searchRef} variant="outlined" placeholder="搜索..." style={{ <mdui-text-field icon="search" type="search" clearable ref={searchRef} variant="outlined" placeholder="搜索..." style={{
marginTop: '5px', paddingTop: '5px',
marginBottom: '13px', paddingBottom: '13px',
position: 'sticky', position: 'sticky',
top: '0', top: '0',
backgroundColor: 'rgb(var(--mdui-color-background))', backgroundColor: 'rgb(var(--mdui-color-background))',

View File

@@ -62,6 +62,7 @@ export default function ContactsList({
overflowY: 'auto', overflowY: 'auto',
paddingLeft: '10px', paddingLeft: '10px',
paddingRight: '10px', paddingRight: '10px',
paddingTop: '0',
display: display ? undefined : 'none', display: display ? undefined : 'none',
height: '100%', height: '100%',
width: '100%', width: '100%',
@@ -141,7 +142,7 @@ export default function ContactsList({
</> </>
} }
<div style={{ <div style={{
height: "15px", height: "10px",
}}></div> }}></div>
</div> </div>

View File

@@ -55,6 +55,7 @@ export default function RecentsList({
overflowY: 'auto', overflowY: 'auto',
paddingRight: '10px', paddingRight: '10px',
paddingLeft: '10px', paddingLeft: '10px',
paddingTop: '0',
display: display ? undefined : 'none', display: display ? undefined : 'none',
height: '100%', height: '100%',
width: '100%', width: '100%',