Skip to content

Commit 59f97b0

Browse files
committed
More CSS fixes for the virtual notebook
1 parent 656e6fd commit 59f97b0

File tree

1 file changed

+7
-4
lines changed
  • packages/notebook-extension/style

1 file changed

+7
-4
lines changed

packages/notebook-extension/style/base.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ body[data-notebook='notebooks'] .jp-NotebookPanel-toolbar {
1515

1616
body[data-notebook='notebooks'] .jp-Notebook > * {
1717
background: var(--jp-layout-color0);
18-
padding-bottom: var(--jp-notebook-padding);
1918
}
2019

2120
body[data-notebook='notebooks']
@@ -24,7 +23,6 @@ body[data-notebook='notebooks']
2423
background: var(--jp-layout-color0) !important;
2524
}
2625

27-
body[data-notebook='notebooks'] .jp-WindowedPanel-window,
2826
body[data-notebook='notebooks'] .jp-WindowedPanel-inner {
2927
margin-top: var(--jp-notebook-toolbar-margin-bottom);
3028
}
@@ -50,8 +48,14 @@ body[data-notebook='notebooks'] .jp-Notebook.jp-mod-scrollPastEnd::after {
5048
min-height: 0;
5149
}
5250

51+
/* body[data-notebook='notebooks'] .jp-WindowedPanel-window > *:first-child { */
52+
/* TODO: revisit when https://github.com/jupyterlab/jupyterlab/issues/13151 is fixed */
53+
.jp-Notebook-cell[data-windowed-list-index='0'] {
54+
padding-top: calc(2 * var(--jp-notebook-padding));
55+
}
56+
5357
body[data-notebook='notebooks'] .jp-WindowedPanel-window > *:last-child {
54-
padding-bottom: 10px;
58+
padding-bottom: calc(2 * var(--jp-notebook-padding));
5559
}
5660

5761
body[data-notebook='notebooks']
@@ -210,7 +214,6 @@ body[data-notebook='notebooks']
210214
left: 0;
211215
right: 0;
212216
box-shadow: 0px 0px 12px 1px var(--jp-shadow-umbra-color);
213-
margin-bottom: -11px;
214217
}
215218

216219
body[data-notebook='notebooks']

0 commit comments

Comments
 (0)