From e34ee42c8207511b72594bc75755c860d35852d8 Mon Sep 17 00:00:00 2001 From: Jared Stoffan Date: Wed, 6 Jan 2021 16:52:28 -0800 Subject: [PATCH] fix(controls): Hide thumbnails toggle on small screens and fullscreen (#1313) --- src/lib/viewers/doc/_docBase.scss | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/viewers/doc/_docBase.scss b/src/lib/viewers/doc/_docBase.scss index 90a7256e4..217a26c36 100644 --- a/src/lib/viewers/doc/_docBase.scss +++ b/src/lib/viewers/doc/_docBase.scss @@ -14,7 +14,8 @@ $thumbnail-sidebar-width: 226px; } .bp { - .bp-toggle-thumbnails-icon { + .bp-toggle-thumbnails-icon, + .bp-ThumbnailsToggle { display: none; } @@ -171,7 +172,8 @@ $thumbnail-sidebar-width: 226px; } } - .bp-controls-btn.bp-toggle-thumbnails-icon { + .bp-controls-btn.bp-toggle-thumbnails-icon, + .bp-ThumbnailsToggle { display: block; } } @@ -375,7 +377,8 @@ $thumbnail-sidebar-width: 226px; } // Hide the toggle thumbnails button when in fullscreen - &.bp-is-fullscreen .bp-toggle-thumbnails-icon { + &.bp-is-fullscreen .bp-toggle-thumbnails-icon, + &.bp-is-fullscreen .bp-ThumbnailsToggle { display: none; } }