Skip to content

Commit

Permalink
Use code_size instead of spacing for code_block metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 5, 2025
1 parent c7711e5 commit ef25dfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widget/src/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,16 +1197,16 @@ where
.size(settings.code_size)
.into()
})))
.padding(settings.spacing.0 / 2.0),
.padding(settings.code_size),
)
.direction(scrollable::Direction::Horizontal(
scrollable::Scrollbar::default()
.width(settings.spacing.0 / 2.0)
.scroller_width(settings.spacing.0 / 2.0),
.width(settings.code_size / 2)
.scroller_width(settings.code_size / 2),
)),
)
.width(Length::Fill)
.padding(settings.spacing.0 / 2.0)
.padding(settings.code_size / 4)
.class(Theme::code_block())
.into()
}
Expand Down

0 comments on commit ef25dfb

Please sign in to comment.