File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 justify-content : space-between ;
4545 align-items : center ;
4646 cursor : pointer ;
47- padding : 10px ;
47+ padding : 8px ;
48+ margin-bottom : 4px ;
4849 height : 20px ;
4950 border-radius : 8px ;
5051
52+ .menuItemsTitle {
53+ flex : 1 ;
54+ width : 0 ;
55+ .f-single-line ();
56+ }
57+
58+ .moreButton {
59+ flex-shrink : 0 ;
60+ display : none ;
61+ transform : rotate (90deg );
62+ }
63+
5164 & :hover {
5265 background-color : var (--color-hover-bg );
5366 border : var (--border-radius );
67+ .moreButton {
68+ display : block ;
69+ }
5470 }
5571 }
5672
57- .menuItemsTitle {}
5873
5974 .menuItemActive {
6075 color : var (--color-primary );
156171.databaseItemSpacer {
157172 flex-grow : 1 ;
158173 width : 210px ;
159- margin : 10 px 20px ;
174+ margin : 0 px 20px ;
160175 padding : 0px 16px ;
161176 box-sizing : border-box ;
162177}
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ function Connections(props: IProps) {
3434 // const [connectionList, setConnectionList] = useState<IConnectionDetails[]>();
3535 const [ curConnection , setCurConnection ] = useState < Partial < IConnectionDetails > > ( { } ) ;
3636
37-
38-
3937 useEffect ( ( ) => {
4038 getConnectionList ( ) ;
4139 } , [ ] ) ;
@@ -46,7 +44,6 @@ function Connections(props: IProps) {
4644 pageSize : 999 ,
4745 } ;
4846 let res = await connectionService . getList ( p )
49- // setConnectionList(res.data);
5047
5148 props . dispatch ( {
5249 type : 'connection/setConnectionList' ,
@@ -94,6 +91,7 @@ function Connections(props: IProps) {
9491 < span style = { { marginLeft : '8px' } } > { label } </ span >
9592 </ div >
9693 < Dropdown
94+ trigger = { [ 'click' ] }
9795 menu = { {
9896 items : [
9997 {
@@ -121,7 +119,9 @@ function Connections(props: IProps) {
121119 ] ,
122120 } }
123121 >
124- < MoreOutlined />
122+ < div className = { styles . moreButton } >
123+ < Iconfont code = "" > </ Iconfont >
124+ </ div >
125125 </ Dropdown >
126126 </ div >
127127 ) ;
@@ -180,7 +180,7 @@ function Connections(props: IProps) {
180180 ) ;
181181 } ) }
182182 {
183- Array . from ( { length : 20 } ) . map ( t => {
183+ Array . from ( { length : 5 } ) . map ( t => {
184184 return < div className = { styles . databaseItemSpacer } > </ div >
185185 } )
186186 }
Original file line number Diff line number Diff line change @@ -21,29 +21,29 @@ input:-webkit-autofill {
2121 caret-color : var (--color-text ); // 光标的颜色
2222}
2323
24- // ::-webkit-scrollbar {
25- // width: 6px;
26- // height: 6px;
27- // }
24+ ::-webkit-scrollbar {
25+ width : 6px ;
26+ height : 6px ;
27+ }
2828
29- // ::-webkit-scrollbar-thumb {
30- // background-color: var(--color-bg );
31- // border-radius: 3px;
32- // }
29+ ::-webkit-scrollbar-thumb {
30+ background-color : var (--color-fill );
31+ border-radius : 3px ;
32+ }
3333
34- // ::-webkit-scrollbar-button {
35- // width: 0;
36- // height: 0;
37- // background: transparent;
38- // }
34+ ::-webkit-scrollbar-button {
35+ width : 0 ;
36+ height : 0 ;
37+ background : transparent ;
38+ }
3939
40- // ::-webkit-scrollbar-track {
41- // background: transparent;
42- // }
40+ ::-webkit-scrollbar-track {
41+ background : transparent ;
42+ }
4343
44- // ::-webkit-scrollbar-corner {
45- // background: transparent;
46- // }
44+ ::-webkit-scrollbar-corner {
45+ background : transparent ;
46+ }
4747
4848html ,
4949body ,
You can’t perform that action at this time.
0 commit comments