fix: apply board opacity to containers
This commit is contained in:
1 parent
cd86b10167
commit
c2aab13f94
2 files changed
+36
-8
No files matched your search
@@ -46,6 +46,7 @@ export const BoardContainerSection = ({ section }: Props) => {
|
|||||||
<Card
|
<Card
|
||||||
className={combineClasses(
|
className={combineClasses(
|
||||||
classes.itemCard,
|
classes.itemCard,
|
||||||
|
classes.containerCard,
|
||||||
options.customCssClasses.join(" "),
|
options.customCssClasses.join(" "),
|
||||||
isVisuallyCollapsed && classes.collapsedContainerCard,
|
isVisuallyCollapsed && classes.collapsedContainerCard,
|
||||||
)}
|
)}
|
||||||
@@ -56,7 +57,7 @@ export const BoardContainerSection = ({ section }: Props) => {
|
|||||||
root: {
|
root: {
|
||||||
overflow: "visible",
|
overflow: "visible",
|
||||||
"--opacity": board.opacity / 100,
|
"--opacity": board.opacity / 100,
|
||||||
"--border-color": options.borderColor || undefined,
|
"--container-border-color": options.borderColor || undefined,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
radius={board.itemRadius}
|
radius={board.itemRadius}
|
||||||
@@ -103,6 +104,7 @@ export const BoardContainerSection = ({ section }: Props) => {
|
|||||||
)}
|
)}
|
||||||
{!isVisuallyCollapsed && !options.collapsible && options.showLabel && options.title && (
|
{!isVisuallyCollapsed && !options.collapsible && options.showLabel && options.title && (
|
||||||
<Badge
|
<Badge
|
||||||
|
className={classes.containerLabel}
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
top="calc(var(--mantine-spacing-xs) * -1)"
|
top="calc(var(--mantine-spacing-xs) * -1)"
|
||||||
left={labelLeft}
|
left={labelLeft}
|
||||||
@@ -113,12 +115,7 @@ export const BoardContainerSection = ({ section }: Props) => {
|
|||||||
c="var(--mantine-color-text)"
|
c="var(--mantine-color-text)"
|
||||||
style={{
|
style={{
|
||||||
zIndex: 9,
|
zIndex: 9,
|
||||||
overflow: "hidden",
|
|
||||||
pointerEvents: "none",
|
pointerEvents: "none",
|
||||||
textOverflow: "ellipsis",
|
|
||||||
whiteSpace: "nowrap",
|
|
||||||
backgroundColor: "var(--background-color)",
|
|
||||||
borderColor: "var(--border-color)",
|
|
||||||
}}
|
}}
|
||||||
title={options.title}
|
title={options.title}
|
||||||
data-board-container-label
|
data-board-container-label
|
||||||
@@ -128,6 +125,7 @@ export const BoardContainerSection = ({ section }: Props) => {
|
|||||||
)}
|
)}
|
||||||
{options.showOpenAll && !isEditMode && (
|
{options.showOpenAll && !isEditMode && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
|
className={classes.containerAction}
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
top={isVisuallyCollapsed ? "50%" : "calc(var(--mantine-spacing-xs) * -1)"}
|
top={isVisuallyCollapsed ? "50%" : "calc(var(--mantine-spacing-xs) * -1)"}
|
||||||
right={8}
|
right={8}
|
||||||
|
|||||||
@@ -11,6 +11,18 @@
|
|||||||
border-color: var(--border-color) !important;
|
border-color: var(--border-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.containerCard {
|
||||||
|
@mixin dark {
|
||||||
|
--container-default-border-color: var(--mantine-color-dark-4);
|
||||||
|
}
|
||||||
|
@mixin light {
|
||||||
|
--container-default-border-color: var(--mantine-color-gray-3);
|
||||||
|
}
|
||||||
|
--border-color: rgb(
|
||||||
|
from var(--container-border-color, var(--container-default-border-color)) r g b / var(--opacity, 1)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
.itemCard:global(.iframe-wrapper) {
|
.itemCard:global(.iframe-wrapper) {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
border-color: transparent !important;
|
border-color: transparent !important;
|
||||||
@@ -26,8 +38,8 @@
|
|||||||
z-index: 9;
|
z-index: 9;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: var(--mantine-color-text);
|
color: var(--mantine-color-text);
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color) !important;
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.containerToggle :global(.mantine-Button-inner) {
|
.containerToggle :global(.mantine-Button-inner) {
|
||||||
@@ -42,6 +54,24 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.containerLabel,
|
||||||
|
.containerAction {
|
||||||
|
background-color: var(--background-color) !important;
|
||||||
|
border-color: var(--border-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.containerLabel {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.containerLabel :global(.mantine-Badge-label) {
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
.containerBody {
|
.containerBody {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|||||||
Reference in new issue
Block a user