feat: improve mask ui

This commit is contained in:
Yidadaa 2023-05-02 03:01:42 +08:00
parent 116e16e30d
commit 132f6c8420
2 changed files with 13 additions and 17 deletions

View File

@ -23,8 +23,9 @@
.mask-filter {
width: 100%;
max-width: 100%;
margin-bottom: 10px;
margin-bottom: 20px;
animation: search-in ease 0.3s;
height: 40px;
display: flex;
@ -32,7 +33,6 @@
flex-grow: 1;
max-width: 100%;
min-width: 0;
margin-bottom: 20px;
animation: search-in ease 0.3s;
}
@ -45,10 +45,7 @@
height: 100%;
margin-left: 10px;
box-sizing: border-box;
button {
padding: 10px;
}
min-width: 80px;
}
}

View File

@ -291,17 +291,16 @@ export function MaskPage() {
))}
</select>
<div className={styles["mask-create"]}>
<IconButton
icon={<AddIcon />}
text={Locale.Mask.Page.Create}
bordered
onClick={() => {
const createdMask = maskStore.create();
setEditingMaskId(createdMask.id);
}}
/>
</div>
<IconButton
className={styles["mask-create"]}
icon={<AddIcon />}
text={Locale.Mask.Page.Create}
bordered
onClick={() => {
const createdMask = maskStore.create();
setEditingMaskId(createdMask.id);
}}
/>
</div>
<div>