diff --git a/crates/storybook2/src/stories/z_index.rs b/crates/storybook2/src/stories/z_index.rs index deb6560eac5cac209f19567ae1218233882200c5..d729b75c2a54fdb58bb2f22dd8f0444fdd195056 100644 --- a/crates/storybook2/src/stories/z_index.rs +++ b/crates/storybook2/src/stories/z_index.rs @@ -72,8 +72,7 @@ trait Styles: Styled + Sized { self.bg(rgb::(0xe5e8fc)) .border_5() .border_color(rgb::(0x112382)) - // HACK: Simulate `line-height: 55px`. - .pt(px(16.)) + .line_height(px(55.)) // HACK: Simulate `text-align: center`. .pl(px(24.)) } @@ -119,8 +118,7 @@ impl ZIndexExample { .text_color(rgb::(0x000000)) .border_5() .border_color(rgb::(0xe3e0a1)) - // HACK: Simulate `line-height: 215px`. - .pt(px(100.)) + .line_height(px(215.)) // HACK: Simulate `text-align: center`. .pl(px(24.)) .z_index(self.z_index)