mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-14 09:44:51 +01:00
Update packages/mermaid/src/diagrams/class/classDb.ts
Co-authored-by: Alois Klink <alois@mermaidchart.com>
This commit is contained in:
@@ -464,7 +464,7 @@ export const setCssStyle = function (id: string, styles: string[]) {
|
|||||||
}
|
}
|
||||||
for (const s of styles) {
|
for (const s of styles) {
|
||||||
if (s.includes(',')) {
|
if (s.includes(',')) {
|
||||||
thisClass.styles = [...thisClass.styles, ...s.split(',')];
|
thisClass.styles.push(...s.split(','));
|
||||||
} else {
|
} else {
|
||||||
thisClass.styles.push(s);
|
thisClass.styles.push(s);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user