commit a3ba6e7998da6ef9a44baf855a00b3f4a4caf3fe
parent 960203522e65193c8376c2bad349b87a69247cdf
Author: DJ <dj@walker.dev>
Date: Wed, 29 Oct 2025 17:42:09 +0000
Bug 1986587 - Ensure multiselected tabs in collapsed groups remain visible. r=sthompson,tabbrowser-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D270057
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/browser/components/tabbrowser/content/tabgroup.js b/browser/components/tabbrowser/content/tabgroup.js
@@ -451,7 +451,7 @@
if (this.isBeingDragged) {
return false;
}
- if (this.collapsed && !tab.selected) {
+ if (this.collapsed && !tab.selected && !tab.multiselected) {
return false;
}
return true;
diff --git a/browser/themes/shared/tabbrowser/tabs.css b/browser/themes/shared/tabbrowser/tabs.css
@@ -1361,7 +1361,7 @@ tab-group {
--tab-group-line-color: light-dark(var(--tab-group-color), var(--tab-group-color-invert));
#tabbrowser-tabs[orient="horizontal"] &[movingtabgroup][collapsed] > .tabbrowser-tab[visuallyselected],
- #tabbrowser-tabs[orient="horizontal"] &[collapsed] > .tabbrowser-tab:not([visuallyselected]) {
+ #tabbrowser-tabs[orient="horizontal"] &[collapsed] > .tabbrowser-tab:not([visuallyselected], [multiselected]) {
min-width: 0 !important;
max-width: 0 !important;
padding: 0;
@@ -1369,7 +1369,7 @@ tab-group {
}
#tabbrowser-tabs[orient="vertical"] &[movingtabgroup][collapsed] > .tabbrowser-tab[visuallyselected],
- #tabbrowser-tabs[orient="vertical"] &[collapsed] > .tabbrowser-tab:not([visuallyselected]),
+ #tabbrowser-tabs[orient="vertical"] &[collapsed] > .tabbrowser-tab:not([visuallyselected], [multiselected]),
#tabbrowser-tabs[orient="vertical"] &[collapsed] > tab-split-view-wrapper:not([hasactivetab]) {
display: none;
}