Explorar el Código

:art: header 高度44

visuddhinanda hace 3 años
padre
commit
3ef0b184fa
Se han modificado 1 ficheros con 25 adiciones y 29 borrados
  1. 25 29
      dashboard/src/components/studio/HeadBar.tsx

+ 25 - 29
dashboard/src/components/studio/HeadBar.tsx

@@ -12,35 +12,31 @@ const { Header } = Layout;
 const onSearch = (value: string) => console.log(value);
 
 const Widget = () => {
-	return (
-		<Header className="header">
-			<Row justify="space-between">
-				<Col flex="80px">
-					<Link to="/">
-						<img
-							alt="code"
-							style={{ height: "3em" }}
-							src={img_banner}
-						/>
-					</Link>
-				</Col>
-				<Col span={8}>
-					<Search
-						placeholder="input search text"
-						onSearch={onSearch}
-						style={{ width: "100%" }}
-					/>
-				</Col>
-				<Col span={4}>
-					<Space>
-						<ToLibaray />
-						<SignInAvatar />
-						<UiLangSelect />
-					</Space>
-				</Col>
-			</Row>
-		</Header>
-	);
+  return (
+    <Header className="header" style={{ lineHeight: "44px", height: 44 }}>
+      <Row justify="space-between">
+        <Col flex="80px">
+          <Link to="/">
+            <img alt="code" style={{ height: 36 }} src={img_banner} />
+          </Link>
+        </Col>
+        <Col span={8}>
+          <Search
+            placeholder="input search text"
+            onSearch={onSearch}
+            style={{ width: "100%" }}
+          />
+        </Col>
+        <Col span={4}>
+          <Space>
+            <ToLibaray />
+            <SignInAvatar />
+            <UiLangSelect />
+          </Space>
+        </Col>
+      </Row>
+    </Header>
+  );
 };
 
 export default Widget;