From 087159093fbb58043d8d72564d583768031c80b2 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 14 Sep 2023 14:17:38 +0200 Subject: [PATCH] Show scrollbars only if needed. --- src/fontra/client/web-components/designspace-location.js | 2 +- src/fontra/views/editor/editor.css | 2 +- src/fontra/views/editor/panel-designspace-navigation.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fontra/client/web-components/designspace-location.js b/src/fontra/client/web-components/designspace-location.js index eb48964a9..e4de91903 100644 --- a/src/fontra/client/web-components/designspace-location.js +++ b/src/fontra/client/web-components/designspace-location.js @@ -9,7 +9,7 @@ export class DesignspaceLocation extends UnlitElement { display: grid; grid-template-columns: 25% auto; gap: 0.4em; - overflow: scroll; + overflow: auto; } .slider-label { diff --git a/src/fontra/views/editor/editor.css b/src/fontra/views/editor/editor.css index 7fef15835..a20855f08 100644 --- a/src/fontra/views/editor/editor.css +++ b/src/fontra/views/editor/editor.css @@ -334,7 +334,7 @@ body { display: flex; flex-direction: column; gap: 0.4em; - overflow: scroll; + overflow: auto; padding-bottom: 0.4em; } diff --git a/src/fontra/views/editor/panel-designspace-navigation.js b/src/fontra/views/editor/panel-designspace-navigation.js index dee39ed21..0a941ea0b 100644 --- a/src/fontra/views/editor/panel-designspace-navigation.js +++ b/src/fontra/views/editor/panel-designspace-navigation.js @@ -643,7 +643,7 @@ export default class DesignspaceNavigationPanel extends Panel { const locationElement = html.createDomElement("designspace-location", { style: `grid-column: 1 / -1; min-height: 0; - overflow: scroll; + overflow: auto; height: 100%; `, });