From e231bc60a91a959fad9ed137c4e1f196e4ff176c Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 23 Nov 2022 06:20:26 +0900 Subject: [PATCH] Fix: Tab Bar - Remove scroll snap at multi row --- css/leptonChrome.css | 4 ---- src/tabbar/_multi_row.scss | 10 +++++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index e8efffc..563cbf3 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -5771,7 +5771,6 @@ flex-wrap: wrap; overflow-y: auto; max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin, 0px)) * var(--uc-multirow-tabbar-rows)); - scroll-snap-type: y mandatory; } } .scrollbox-clip[orient="horizontal"], @@ -5780,9 +5779,6 @@ display: block; --scrollbutton-display-model: none; } - .tabbrowser-tab { - scroll-snap-align: start; - } #tabbrowser-tabs .tabbrowser-tab[pinned] { position: static !important; margin-inline-start: 0px !important; diff --git a/src/tabbar/_multi_row.scss b/src/tabbar/_multi_row.scss index fa3f498..c29b7e5 100644 --- a/src/tabbar/_multi_row.scss +++ b/src/tabbar/_multi_row.scss @@ -31,7 +31,11 @@ See the above repository for updates as well as full license text. */ max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin, 0px)) * var(--uc-multirow-tabbar-rows)); // scrollbar-color: currentColor transparent; // scrollbar-width: thin; - scroll-snap-type: y mandatory; + // scroll-snap-type: y mandatory; + + // .tabbrowser-tab { + // scroll-snap-align: start; + // } } } @@ -42,10 +46,6 @@ See the above repository for updates as well as full license text. */ --scrollbutton-display-model: none; } -.tabbrowser-tab { - scroll-snap-align: start; -} - #tabbrowser-tabs .tabbrowser-tab[pinned] { position: static !important; margin-inline-start: 0px !important;