diff --git a/cypress/platform/omkarht-new-padding.html b/cypress/platform/omkarht-new-padding.html
new file mode 100644
index 000000000..86a501b67
--- /dev/null
+++ b/cypress/platform/omkarht-new-padding.html
@@ -0,0 +1,248 @@
+
+
+
+
+---
+config:
+ theme: neo
+ layout: dagre
+---
+flowchart TD
+ A{"Cylinder"} --- n1["Rectangle"] & n2["Rounded"] & n3(["Stadium"])
+ n1 --x n4["Rounded"]
+ n2 --o n5["Hexagon"]
+ n3 --> n6["Parallelogram"]
+ n5 o--o n7["Trapezoid"]
+ n4 x--x n8["Lean Right"]
+ n6 <--> n9(("Circle"))
+ n8 --> n10["Rose"]
+ n7 --> n11["Pine"]
+ n9 --> n12["Peach"]
+ n2@{ shape: rounded}
+ n4@{ shape: rounded}
+ n5@{ shape: hex}
+ n6@{ shape: lean-l}
+ n7@{ shape: trap-b}
+ n8@{ shape: lean-r}
+
+ n10:::Rose
+ n11:::Pine
+ n12:::Peach
+ classDef Rose stroke-width:1px, stroke-dasharray:none, stroke:#FF5978, fill:#FFDFE5, color:#8E2236
+ classDef Pine stroke-width:1px, stroke-dasharray:none, stroke:#254336, fill:#27654A, color:#FFFFFF
+ classDef Peach stroke-width:1px, stroke-dasharray:none, stroke:#FBB35A, fill:#FFEFDB, color:#8F632D
+ n10 --x End
+ n11 --x End
+ n12 --x End
+
+
+
+
+ ---
+ config:
+ theme: neo
+ layout: dagre
+ ---
+ flowchart TD
+ n1["Cylinder"]
+ n1@{ shape: database}
+
+
+
+
+
+
+
diff --git a/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts b/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts
index 6a8597402..52ca4f817 100644
--- a/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts
+++ b/packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts
@@ -25,15 +25,18 @@ export async function card