mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-05 19:37:22 +00:00
chore: Add support for 6 essentials dynamic layout, b=(no-bug), c=tabs, workspaces
This commit is contained in:
@@ -1255,6 +1255,9 @@
|
||||
transition: max-height 0.3s ease-out;
|
||||
opacity: 1;
|
||||
grid-template-columns: repeat(auto-fit, minmax(max(23.7%, 48px), 1fr));
|
||||
&[data-hack-type='1'] {
|
||||
grid-template-columns: repeat(auto-fit, minmax(max(30%, 48px), auto));
|
||||
}
|
||||
&[data-hack-type='2'] {
|
||||
grid-template-columns: repeat(auto-fit, minmax(max(23.7%, 48px), 1fr) minmax(max(23.7%, 48px), 1fr));
|
||||
}
|
||||
|
||||
@@ -2396,7 +2396,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
const essentialContainer = this.getEssentialsSection(workspaceObject.containerTabId);
|
||||
const essentialNumChildren = essentialContainer.children.length;
|
||||
let essentialHackType = 0;
|
||||
if (essentialNumChildren % 2 === 0) {
|
||||
if (essentialNumChildren === 6) {
|
||||
essentialHackType = 1;
|
||||
} else if (essentialNumChildren % 2 === 0) {
|
||||
essentialHackType = 2;
|
||||
}
|
||||
if (essentialHackType > 0) {
|
||||
|
||||
Reference in New Issue
Block a user