Commit afbdcf76 authored by chenshouchao's avatar chenshouchao

项目列表样式修改

parent 21d75bb6
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
z-index: 1002; z-index: 1002;
} }
.productLi { .productLi {
min-width: 142px;
height: 36px; height: 36px;
padding: 7px 50px 7px 16px; padding: 7px 50px 7px 16px;
font-size: 14px; font-size: 14px;
...@@ -109,16 +110,6 @@ ...@@ -109,16 +110,6 @@
color: #8a9099; color: #8a9099;
transform: rotate(180deg); transform: rotate(180deg);
} }
/* .ArrowDropDownIconRoot {
color: #8a9099;
transition: all 0.2s !important;
transform: rotate(0);
}
.ArrowDropDownIconRootOpen {
color: #8a9099;
transform: rotate(180deg);
} */
.menuPaper { .menuPaper {
border: 1px solid #f0f2f5; border: 1px solid #f0f2f5;
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
width: calc(100vw - 220px); width: calc(100vw - 220px);
height: calc(100vh - 57px); height: calc(100vh - 57px);
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
/* width: 260px;
height: calc(100vh - 57px); */
/* width: 260px;
height: calc(100vh - 57px);
background-color: #fff;
border-right: 1px solid #ebedf0;
display: flex;
flex-direction: column; */
} }
.mainBox { .mainBox {
...@@ -25,10 +17,11 @@ ...@@ -25,10 +17,11 @@
.searchBox { .searchBox {
box-sizing: border-box; box-sizing: border-box;
height: 56px; height: 56px;
padding: 17px; padding: 12px 8px 12px 24px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center;
} }
.searchButton { .searchButton {
width: 22px; width: 22px;
...@@ -48,8 +41,11 @@ ...@@ -48,8 +41,11 @@
} }
.add { .add {
padding: 0 15px; padding: 0 15px;
width: 22px; width: 32px;
height: 22px; height: 32px;
}
.add:hover {
border-radius: 4px;
} }
.addIcon { .addIcon {
color: #1e2633; color: #1e2633;
...@@ -96,13 +92,14 @@ ...@@ -96,13 +92,14 @@
overflow: hidden; overflow: hidden;
} }
.projectOwnerTime { .projectOwnerTime {
font-size: 12px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.projectOwner { .projectOwner {
font-size: 12px;
color: #565c66; color: #565c66;
line-height: 20px; line-height: 20px;
font-size: 14px;
margin-right: 32px; margin-right: 32px;
max-width: 60px; max-width: 60px;
white-space: nowrap; white-space: nowrap;
...@@ -113,5 +110,5 @@ ...@@ -113,5 +110,5 @@
.projectTime { .projectTime {
color: #8a9099; color: #8a9099;
line-height: 20px; line-height: 20px;
font-size: 14px; font-size: 12px;
} }
...@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add"; ...@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add";
import classNames from "classnames"; import classNames from "classnames";
import { useStores } from "@/store/index"; import { useStores } from "@/store/index";
import moment from "moment"; import moment from "moment";
import React, { useMemo, useState } from "react"; import React, { useMemo, useState } from "react";
import { useClickAway } from 'ahooks'; import { useClickAway } from "ahooks";
import { toJS } from "mobx"; import { toJS } from "mobx";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
...@@ -36,21 +36,26 @@ const ProjectListPopper = observer((props: any) => { ...@@ -36,21 +36,26 @@ const ProjectListPopper = observer((props: any) => {
return item.name?.indexOf(name) !== -1; return item.name?.indexOf(name) !== -1;
}); });
}, [projectList, name]); }, [projectList, name]);
console.log(list);
const handleProjectBox = (e: React.SyntheticEvent) => { const handleProjectBox = (e: React.SyntheticEvent) => {
setProjectListOpen(false); setProjectListOpen(false);
}; };
useClickAway( useClickAway(
() => { () => {
setProjectListOpen(false); setProjectListOpen(false);
}, },
() => document.getElementById('use-click-projectList-mainBox'), () => document.getElementById("use-click-projectList-mainBox")
); );
return ( return (
<div className={style.projectBox} onClick={handleProjectBox}> <div className={style.projectBox} onClick={handleProjectBox}>
<div className={style.mainBox} id="use-click-projectList-mainBox" onClick={(e: any)=>e.stopPropagation()}> <div
className={style.mainBox}
id="use-click-projectList-mainBox"
onClick={(e: any) => e.stopPropagation()}
>
<div className={style.searchBox}> <div className={style.searchBox}>
<IconButton <IconButton
type="submit" type="submit"
...@@ -68,6 +73,11 @@ const ProjectListPopper = observer((props: any) => { ...@@ -68,6 +73,11 @@ const ProjectListPopper = observer((props: any) => {
inputProps={{ "aria-label": "请输入项目名称" }} inputProps={{ "aria-label": "请输入项目名称" }}
value={name} value={name}
onChange={nameChange} onChange={nameChange}
sx={{
fontSize: "14px",
color: "rgba(194, 198, 204, 1)",
height: "22px",
}}
/> />
<IconButton <IconButton
onClick={handleClickOpen} onClick={handleClickOpen}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment