summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-07-08 10:52:43 +0200
committerGitHub <noreply@github.com>2025-07-08 08:52:43 +0000
commit0a3c6939dd274f40672484695d909c2cc0d0d755 (patch)
tree465c10338230b895fdd06c8b3491f1734e8a2932 /docs
parent36ecbb2c8dccc1a31c43fee1466f1425844d8607 (diff)
Rewrite foundations of native elements (#6547)
Diffstat (limited to 'docs')
-rw-r--r--docs/src/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/src/lib.rs b/docs/src/lib.rs
index dc6b62c7..ddc956e6 100644
--- a/docs/src/lib.rs
+++ b/docs/src/lib.rs
@@ -63,12 +63,10 @@ static LIBRARY: LazyLock<LazyHash<Library>> = LazyLock::new(|| {
scope.reset_category();
// Adjust the default look.
+ lib.styles.set(PageElem::width, Smart::Custom(Abs::pt(240.0).into()));
+ lib.styles.set(PageElem::height, Smart::Auto);
lib.styles
- .set(PageElem::set_width(Smart::Custom(Abs::pt(240.0).into())));
- lib.styles.set(PageElem::set_height(Smart::Auto));
- lib.styles.set(PageElem::set_margin(Margin::splat(Some(Smart::Custom(
- Abs::pt(15.0).into(),
- )))));
+ .set(PageElem::margin, Margin::splat(Some(Smart::Custom(Abs::pt(15.0).into()))));
LazyHash::new(lib)
});