From 788278b97e67a9940f6295fba75e10e731887278 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 7 Jan 2020 15:02:26 +0530 Subject: [PATCH] Fix #1858606 [Smooth scrolling settings doesn't fit on small screens](https://bugs.launchpad.net/calibre/+bug/1858606) --- src/pyj/read_book/prefs/scrolling.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/prefs/scrolling.pyj b/src/pyj/read_book/prefs/scrolling.pyj index e296911f7d..9165e6084b 100644 --- a/src/pyj/read_book/prefs/scrolling.pyj +++ b/src/pyj/read_book/prefs/scrolling.pyj @@ -76,7 +76,7 @@ def create_scrolling_panel(container, apply_func, cancel_func): _('Stop at internal file boundaries when smooth scrolling by holding down the scroll key') )) container.appendChild( - E.div(style='display:grid;margin-top:1ex;align-items:center;grid-template-columns:25em min-content;grid-gap:1ex', + E.div(style='display:grid;margin-top:1ex;align-items:center;grid-template-columns:auto min-content;grid-gap:1ex; max-width: 30em', *spinner( 'lines_per_sec_smooth', _('Smooth scrolling speed in lines/sec'),