Skip to content

Commit

Permalink
Add prettier spacing between list and items
Browse files Browse the repository at this point in the history
  • Loading branch information
lampsitter committed Apr 1, 2024
1 parent 81e57f2 commit cc2c299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(crate) fn number_point(ui: &mut Ui, number: &str) {
ui.painter().text(
rect.right_center(),
egui::Align2::RIGHT_CENTER,
format!("{number}. "),
format!("{number}."),
TextStyle::Body.resolve(ui.style()),
ui.visuals().strong_text_color(),
);
Expand Down Expand Up @@ -251,6 +251,8 @@ impl List {
} else {
unreachable!();
}

ui.add_space(4.0);
}

pub fn end_level(&mut self, ui: &mut Ui) {
Expand Down

0 comments on commit cc2c299

Please sign in to comment.