mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 17:36:34 +00:00
Enhance split view tab management and styling adjustments
This commit is contained in:
@@ -781,6 +781,7 @@
|
||||
return;
|
||||
}
|
||||
tab.removeAttribute('zen-pinned-changed');
|
||||
tab.removeAttribute('had-zen-pinned-changed');
|
||||
tab.style.removeProperty('--zen-original-tab-icon');
|
||||
}
|
||||
|
||||
@@ -788,7 +789,11 @@
|
||||
if (tab.hasAttribute('zen-pinned-changed')) {
|
||||
return;
|
||||
}
|
||||
tab.setAttribute('zen-pinned-changed', 'true');
|
||||
if (tab.group?.hasAttribute('split-view-group')) {
|
||||
tab.setAttribute('had-zen-pinned-changed', 'true');
|
||||
} else {
|
||||
tab.setAttribute('zen-pinned-changed', 'true');
|
||||
}
|
||||
tab.style.setProperty('--zen-original-tab-icon', `url(${pin.iconUrl})`);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user