Adapt scrollable sizing strategy to contents

This commit is contained in:
Héctor Ramón Jiménez 2024-07-18 13:22:53 +02:00
parent 904704d7c1
commit aa62fa2ce9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 17 additions and 12 deletions

View file

@ -60,13 +60,10 @@ impl Markdown {
let preview = markdown(&self.items);
row![
editor,
scrollable(preview).spacing(10).width(Fill).height(Fill)
]
.spacing(10)
.padding(10)
.into()
row![editor, scrollable(preview).spacing(10).height(Fill)]
.spacing(10)
.padding(10)
.into()
}
fn theme(&self) -> Theme {