Make rule API consistent with space

This commit is contained in:
Héctor Ramón Jiménez 2025-09-19 18:09:59 +02:00
parent afac7be7d1
commit 8f87a2bc2e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 37 additions and 54 deletions

View file

@ -290,7 +290,7 @@ fn quotes<'a>() -> Element<'a, Message> {
fn quote<'a>(
content: impl Into<Element<'a, Message>>,
) -> Element<'a, Message> {
row![rule(1).vertical(), content.into()]
row![rule::vertical(1), content.into()]
.spacing(10)
.height(Shrink)
.into()
@ -308,7 +308,7 @@ fn quotes<'a>() -> Element<'a, Message> {
reply("This is the original message", "This is a reply"),
"This is another reply",
),
rule(1),
rule::horizontal(1),
text("A separator ↑"),
]
.width(Shrink)