Merge branch 'master' into beacon

This commit is contained in:
Héctor Ramón Jiménez 2025-04-05 18:20:31 +02:00
commit 3f67044977
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
62 changed files with 713 additions and 780 deletions

View file

@ -120,9 +120,11 @@ impl Value {
/// dot ('•') character.
pub fn secure(&self) -> Self {
Self {
graphemes: std::iter::repeat(String::from(""))
.take(self.graphemes.len())
.collect(),
graphemes: std::iter::repeat_n(
String::from(""),
self.graphemes.len(),
)
.collect(),
}
}
}

View file

@ -386,9 +386,11 @@ where
renderer,
&layout::Limits::new(
Size::ZERO,
self.snap_within_viewport
.then(|| viewport.size())
.unwrap_or(Size::INFINITY),
if self.snap_within_viewport {
viewport.size()
} else {
Size::INFINITY
},
)
.shrink(Padding::new(self.padding)),
);