We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
code_size
spacing
code_block
1 parent c7711e5 commit ef25dfbCopy full SHA for ef25dfb
widget/src/markdown.rs
@@ -1197,16 +1197,16 @@ where
1197
.size(settings.code_size)
1198
.into()
1199
})))
1200
- .padding(settings.spacing.0 / 2.0),
+ .padding(settings.code_size),
1201
)
1202
.direction(scrollable::Direction::Horizontal(
1203
scrollable::Scrollbar::default()
1204
- .width(settings.spacing.0 / 2.0)
1205
- .scroller_width(settings.spacing.0 / 2.0),
+ .width(settings.code_size / 2)
+ .scroller_width(settings.code_size / 2),
1206
)),
1207
1208
.width(Length::Fill)
1209
- .padding(settings.spacing.0 / 2.0)
+ .padding(settings.code_size / 4)
1210
.class(Theme::code_block())
1211
1212
}
0 commit comments