Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Commit fcd6033

Browse files
fix(aspect-ratio): fix padding bottom for Yew (#524)
1 parent a08b069 commit fcd6033

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/primitives/yew/aspect-ratio/src/aspect_ratio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn AspectRatio(props: &AspectRatioProps) -> Html {
6464
("position", "relative"),
6565
// Width ensures padding bottom trick maths works.
6666
("width", "100%"),
67-
("padding-bottom", &(100.0 / props.ratio).to_string()),
67+
("padding-bottom", &format!("{}%", 100.0 / props.ratio)),
6868
])}
6969
>
7070
if let Some(as_child) = props.as_child.as_ref() {

0 commit comments

Comments
 (0)