We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57297cb commit b70d22cCopy full SHA for b70d22c
1 file changed
core/src/components/highlight_code_block.rs
@@ -1,4 +1,8 @@
1
-use crate::{config::HighlightLine, edges::padding::Padding, utils::color::RgbaColor};
+use crate::{
2
+ config::HighlightLine,
3
+ edges::{edge::Edge, padding::Padding},
4
+ utils::color::RgbaColor,
5
+};
6
7
use super::{
8
editor::code::CODE_LINE_HEIGHT,
@@ -105,7 +109,7 @@ impl HighlightCodeBlock {
105
109
let rect = Rect::from_xywh(
106
110
render_params.x - self.editor_padding.left,
107
111
render_params.y + start_y_offset,
108
- parent_style.width,
112
+ parent_style.width + self.editor_padding.horizontal(),
113
// If end_line_number is equal to start_line_number, the height should be line_height
114
(end_line_number - start_line_number + 1) as f32 * CODE_LINE_HEIGHT,
115
)
0 commit comments