From 2dabb6a1fc61e15e73bb66971b2d1d6ca447fc6e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 9 Apr 2015 11:03:06 +0100 Subject: [PATCH] Fix modal scroll behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous behaviour didn’t allow scrolling of the modal itself through the scroll bar because the scrollbar was hidden behind the backdrop. Fixes #1642 --- themes/tiddlywiki/vanilla/base.tid | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 753016fa6..f8d528cd1 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -1130,14 +1130,22 @@ canvas.tc-edit-bitmapeditor { .tc-modal-body { overflow-y: auto; max-height: 400px; + max-height: 60vh; } } @media (min-width: 55em) { .tc-modal { - position: relative; + position: fixed; + top: 2em; + left: 25%; width: 50%; - margin: 30px auto; + } + + .tc-modal-body { + overflow-y: auto; + max-height: 400px; + max-height: 60vh; } }