File tree Expand file tree Collapse file tree 4 files changed +35
-9
lines changed
Expand file tree Collapse file tree 4 files changed +35
-9
lines changed Original file line number Diff line number Diff line change 11import { LabIcon } from '@jupyterlab/ui-components' ;
22import driveBrowserSvg from '../style/driveIconFileBrowser.svg' ;
3+ import addIconSvg from '../style/addIcon.svg' ;
34
45export const driveBrowserIcon = new LabIcon ( {
56 name : 'jupyter-drives:drive-browser' ,
67 svgstr : driveBrowserSvg
78} ) ;
9+
10+ export const addIcon = new LabIcon ( {
11+ name : 'jupyter-drives:add-drive' ,
12+ svgstr : addIconSvg
13+ } ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
1616 includeDrive
1717} from '../requests' ;
1818import { ISignal , Signal } from '@lumino/signaling' ;
19- import { driveBrowserIcon } from '../icons' ;
19+ import { driveBrowserIcon , addIcon } from '../icons' ;
2020
2121interface IProps {
2222 model : DriveListModel ;
@@ -87,7 +87,11 @@ export function DriveSearchListComponent(props: ISearchListProps) {
8787 await props . model . refresh ( ) ;
8888 } }
8989 >
90- add
90+ < addIcon . react
91+ tag = "span"
92+ className = "available-drives-icon"
93+ height = "18px"
94+ />
9195 </ Button >
9296 </ div >
9397 </ li >
Original file line number Diff line number Diff line change 2727}
2828
2929.search-add-drive-button {
30- background-color : var (--md-blue-700 );
31- color : white;
32- width : 8px ;
33-
34- /* height: 1em; */
30+ background-color : var (--jp-inverse-layout-color1 );
31+ width : 50px ;
32+ height : 20px ;
3533 border-radius : 4px ;
34+ margin-right : 0 ;
3635}
3736
3837.input-add-drive-button {
3938 width : 50px ;
4039 height : 24px !important ;
41- background-color : var (--jp-brand-color1 );
40+ background-color : var (--jp-inverse-layout-color1 );
41+ color : white !important ;
4242 text-align : center;
4343 color : white;
4444 border-radius : 4px ;
@@ -136,9 +136,24 @@ li {
136136
137137.available-drives-section {
138138 display : flex;
139- width : 370 px ;
139+ width : 375 px ;
140140 height : 24px ;
141141 flex-direction : row;
142142 align-items : center;
143143 justify-content : space-between;
144+ border-radius : 4px ;
145+ padding-left : 4px ;
146+ padding-right : 4px ;
147+ }
148+
149+ .available-drives-section : hover {
150+ background-color : var (--md-blue-grey-100 );
151+ }
152+
153+ .available-drives-icon {
154+ display : flex;
155+ align-items : center;
156+ justify-content : center;
157+ fill : var (--jp-ui-inverse-font-color0 ) !important ;
158+ color : var (--jp-ui-inverse-font-color0 ) !important ;
144159}
You can’t perform that action at this time.
0 commit comments