diff options
author | 2025-02-05 02:01:41 +0100 | |
---|---|---|
committer | 2025-02-05 02:01:41 +0100 | |
commit | ef25dfb7331c7ab5446e9b771c9bca8aff231957 (patch) | |
tree | 4120bbfc870e2a35ba4ed368993d609aaff65f33 | |
parent | c7711e59ab74f9cd5a31229b8fc4191ca1322917 (diff) | |
download | iced-ef25dfb7331c7ab5446e9b771c9bca8aff231957.tar.gz iced-ef25dfb7331c7ab5446e9b771c9bca8aff231957.tar.bz2 iced-ef25dfb7331c7ab5446e9b771c9bca8aff231957.zip |
Use `code_size` instead of `spacing` for `code_block` metrics
-rw-r--r-- | widget/src/markdown.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widget/src/markdown.rs b/widget/src/markdown.rs index 7ae89368..b69c663e 100644 --- a/widget/src/markdown.rs +++ b/widget/src/markdown.rs @@ -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() } |