From 0db7fbe301114dd167b561f8ab752275e0cc04ec Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Thu, 10 Dec 2020 21:41:17 +0100 Subject: [PATCH] Add ellipsis for long file names --- packages/notebook-extension/style/base.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/notebook-extension/style/base.css b/packages/notebook-extension/style/base.css index 1dd539e41..d24fa70c6 100644 --- a/packages/notebook-extension/style/base.css +++ b/packages/notebook-extension/style/base.css @@ -64,6 +64,8 @@ font-family: var(--jp-ui-font-family); line-height: calc(1.5 * var(--jp-private-title-panel-height)); text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } #jp-title h1:hover { @@ -79,6 +81,8 @@ font-family: var(--jp-ui-font-family); line-height: calc(1.5 * var(--jp-private-title-panel-height)); text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; } @media only screen and (max-width: 760px) {