瀏覽代碼

put the diagram center

Yuki Takei 3 年之前
父節點
當前提交
8c1cd2655c
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      packages/remark-drawio-plugin/src/components/DrawioViewer.module.scss

+ 7 - 0
packages/remark-drawio-plugin/src/components/DrawioViewer.module.scss

@@ -2,4 +2,11 @@
   margin: 20px 0;
   border: 1px solid transparent;
   border-radius: 4px;
+
+  .geDiagramContainer {
+    // centering
+    margin-right: auto;
+    margin-left: auto;
+  }
+
 }