fix: label styles in bang shape

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
darshanr0107
2025-08-19 19:08:57 +05:30
parent 1e8a9f76a9
commit ecad9cee6c
2 changed files with 4 additions and 0 deletions

View File

@@ -67,6 +67,9 @@ const getStyles: DiagramStylesProvider = (options) =>
.section-root span { .section-root span {
color: ${options.gitBranchLabel0}; color: ${options.gitBranchLabel0};
} }
.section-2 span {
color: ${options.gitBranchLabel0};
}
.icon-container { .icon-container {
height:100%; height:100%;
display: flex; display: flex;

View File

@@ -20,6 +20,7 @@ export async function bang<T extends SVGGraphicsElement>(parent: D3Selection<T>,
const w = bbox.width + 10 * halfPadding; const w = bbox.width + 10 * halfPadding;
const h = bbox.height + 8 * halfPadding; const h = bbox.height + 8 * halfPadding;
const r = 0.15 * w; const r = 0.15 * w;
const { cssStyles } = node;
const minWidth = bbox.width + 20; const minWidth = bbox.width + 20;
const minHeight = bbox.height + 20; const minHeight = bbox.height + 20;