Skip to content

Commit 4ff97a5

Browse files
committed
Custom CSS to be compatiable with both JL2.0 and 3.0
1 parent 5d72f44 commit 4ff97a5

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reviewnb/jupyterlab_gitplus",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "JupyterLab extension to create GitHub pull requests & commits.",
55
"keywords": [
66
"jupyter",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function activate(
4444
notebookTracker: INotebookTracker
4545
) {
4646
console.log(
47-
'JupyterLab extension @reviewnb/gitplus (0.1.4) is activated!'
47+
'JupyterLab extension @reviewnb/gitplus (0.1.5) is activated!'
4848
);
4949
const createPRCommand = 'create-pr';
5050
app.commands.addCommand(createPRCommand, {

style/index.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
SAME SETTINGS TO BE COPIED TO style/base.css
3+
4+
JupyterLab 3.0 requires the custom CSS in base.css
5+
JupyterLab 2.0 requires the custom CSS in index.css
6+
*/
7+
8+
9+
.f1st5hdn svg {
10+
/* To center down arrow on Select Repository DropDown */
11+
top: 12px !important;
12+
}
13+
14+
.gitPlusDialogBody {
15+
padding-top: 2em;
16+
padding-bottom: 2em;
17+
border-top: 1px solid #dfe2e5;
18+
}
19+
20+
.gitPlusMessageTextArea {
21+
margin-top: 3px;
22+
margin-bottom: 15px;
23+
display: block;
24+
min-width: 30em;
25+
min-height: 3em;
26+
font-size: 14px;
27+
}
28+
29+
.jp-Dialog-body {
30+
/* For newlines in error message to be visible */
31+
white-space: pre-wrap;
32+
}
33+
34+
.gitPlusCheckbox {
35+
/* Fixes checkbox compatibility with JupyterLab 3.0 */
36+
height: auto !important;
37+
appearance: revert !important;
38+
}

0 commit comments

Comments
 (0)