Skip to content

Commit 1715cdc

Browse files
Use proper <figure> stylesheet (#1269)
1 parent cc00406 commit 1715cdc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/src/builtins/styled_element_builtin.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,12 @@ class StyledElementBuiltIn extends HtmlExtension {
200200
break;
201201
case "figure":
202202
styledElement.style = Style(
203-
margin: Margins.symmetric(vertical: 14.0, horizontal: 40.0),
203+
margin: Margins(
204+
top: Margin(1, Unit.em),
205+
bottom: Margin(1, Unit.em),
206+
left: Margin(40, Unit.px),
207+
right: Margin(40, Unit.px),
208+
),
204209
display: Display.block,
205210
);
206211
break;

0 commit comments

Comments
 (0)