Skip to content

Commit 45b54ef

Browse files
committed
update available drives listed component
1 parent 7e8df91 commit 45b54ef

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

src/icons.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { LabIcon } from '@jupyterlab/ui-components';
22
import driveBrowserSvg from '../style/driveIconFileBrowser.svg';
3+
import addIconSvg from '../style/addIcon.svg';
34

45
export 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+
});

src/plugins/drivelistmanager.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
includeDrive
1717
} from '../requests';
1818
import { ISignal, Signal } from '@lumino/signaling';
19-
import { driveBrowserIcon } from '../icons';
19+
import { driveBrowserIcon, addIcon } from '../icons';
2020

2121
interface 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>

style/addIcon.svg

Lines changed: 1 addition & 0 deletions
Loading

style/base.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ li {
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: 370px;
139+
width: 375px;
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
}

0 commit comments

Comments
 (0)