mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: hide empty overview columns + transparency effects support
This commit is contained in:
@@ -21,6 +21,9 @@ html.transparencyEffects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Blurs */
|
/* Blurs */
|
||||||
|
.search,
|
||||||
|
.document,
|
||||||
|
.border,
|
||||||
.draggable,
|
.draggable,
|
||||||
.notice,
|
.notice,
|
||||||
[class*="BasicPanel__BasicPanel___"],
|
[class*="BasicPanel__BasicPanel___"],
|
||||||
@@ -42,29 +45,22 @@ html.transparencyEffects {
|
|||||||
backdrop-filter: blur(80px);
|
backdrop-filter: blur(80px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.filter-select,
|
||||||
.report {
|
.report {
|
||||||
backdrop-filter: blur(10px) !important;
|
backdrop-filter: blur(10px) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu,
|
||||||
|
.kanban-column,
|
||||||
.whatsnewContainer,
|
.whatsnewContainer,
|
||||||
[class*="Message__Message___"] {
|
[class*="Message__Message___"] {
|
||||||
backdrop-filter: blur(50px);
|
backdrop-filter: blur(50px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu {
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.title > a {
|
.title > a {
|
||||||
backdrop-filter: blur(0px) !important;
|
backdrop-filter: blur(0px) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search,
|
|
||||||
.document,
|
|
||||||
.border {
|
|
||||||
backdrop-filter: blur(80px);
|
|
||||||
}
|
|
||||||
|
|
||||||
#main > .dashboard {
|
#main > .dashboard {
|
||||||
section,
|
section,
|
||||||
.dashlet {
|
.dashlet {
|
||||||
|
|||||||
@@ -184,7 +184,8 @@ export function renderGrid(container: HTMLElement, data: any) {
|
|||||||
const assessmentList =
|
const assessmentList =
|
||||||
statusGroups[column.key as keyof typeof statusGroups];
|
statusGroups[column.key as keyof typeof statusGroups];
|
||||||
|
|
||||||
if (column.key === "SUBMITTED" && assessmentList.length === 0) {
|
// Skip rendering empty columns
|
||||||
|
if (assessmentList.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,14 +209,6 @@ export function renderGrid(container: HTMLElement, data: any) {
|
|||||||
`#${column.key.toLowerCase()}-cards`,
|
`#${column.key.toLowerCase()}-cards`,
|
||||||
) as HTMLElement;
|
) as HTMLElement;
|
||||||
|
|
||||||
if (assessmentList.length === 0) {
|
|
||||||
cardsContainer.innerHTML = `
|
|
||||||
<div class="empty-column">
|
|
||||||
<div class="empty-icon">${column.icon}</div>
|
|
||||||
<p>No ${column.title.toLowerCase()} assessments</p>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
} else {
|
|
||||||
assessmentList.forEach((assessment) => {
|
assessmentList.forEach((assessment) => {
|
||||||
cardsContainer.appendChild(
|
cardsContainer.appendChild(
|
||||||
createKanbanCard(
|
createKanbanCard(
|
||||||
@@ -224,7 +217,6 @@ export function renderGrid(container: HTMLElement, data: any) {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
columnParentEl.appendChild(columnEl);
|
columnParentEl.appendChild(columnEl);
|
||||||
board.appendChild(columnParentEl);
|
board.appendChild(columnParentEl);
|
||||||
|
|||||||
Reference in New Issue
Block a user