From 2f56fccd18c4e54dadc6c1f2dae666a9cdbd1289 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Sat, 1 Oct 2022 23:30:39 +0200 Subject: [PATCH] One more fix to the cell toolbar position --- packages/notebook-extension/style/base.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/notebook-extension/style/base.css b/packages/notebook-extension/style/base.css index 66622a0e3..e6f1ed9fe 100644 --- a/packages/notebook-extension/style/base.css +++ b/packages/notebook-extension/style/base.css @@ -84,6 +84,15 @@ body[data-notebook='notebooks'] top: calc(2 * var(--jp-notebook-padding)); } +/** first code cell on mobile + (keep the selector above the media query) +*/ +body[data-notebook='notebooks'] + .jp-CodeCell[data-windowed-list-index='0'] + .jp-cell-toolbar { + top: unset; +} + @media only screen and (max-width: 760px) { /* first code cell on mobile */ body[data-notebook='notebooks']