chore: Add support for 6 essentials dynamic layout, b=(no-bug), c=tabs, workspaces

This commit is contained in:
mr. m
2025-04-30 20:08:19 +02:00
parent 270254c760
commit b4a5c1504c
2 changed files with 6 additions and 1 deletions

View File

@@ -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));
}

View File

@@ -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) {