Yidadaa 1 год назад
Родитель
Сommit
132f6c8420
2 измененных файлов с 13 добавлено и 17 удалено
  1. 3 6
      app/components/mask.module.scss
  2. 10 11
      app/components/mask.tsx

+ 3 - 6
app/components/mask.module.scss

@@ -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;
       }
     }
 

+ 10 - 11
app/components/mask.tsx

@@ -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>