diff --git a/.obsidian/snippets/mermaid.css b/.obsidian/snippets/mermaid.css index cf1ce89..14566c5 100644 --- a/.obsidian/snippets/mermaid.css +++ b/.obsidian/snippets/mermaid.css @@ -7,13 +7,17 @@ } - .mermaid > svg { - max-width: 100%; - max-height: 100%; - page-break-inside: avoid; - } - - .mermaid > svg { max-width: 100%; - } \ No newline at end of file + } + +.mermaid { + max-width: 100%; /* установите нужную ширину */ + margin: 0 auto; /* центрирование */ +} + +/* Или для конкретного типа диаграмм */ +.mermaid svg { + max-width: 100%; + height: auto; +} \ No newline at end of file