Skip to content

Commit efc15ed

Browse files
committed
[Release] v0.11.0
1 parent 57297cb commit efc15ed

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codesnap-cli"
3-
version = "0.10.9"
3+
version = "0.11.0"
44
edition = "2021"
55
description = "CLI tools for generating beautiful code snapshots"
66
license = "MIT"
@@ -14,7 +14,7 @@ path = "src/main.rs"
1414
ansi_term = "0.12.1"
1515
anyhow = "1.0.91"
1616
clap = { version = "4.5.21", features = ["derive"] }
17-
codesnap = { path = "../core", version = "0.10.9" }
17+
codesnap = { path = "../core", version = "0.11.0" }
1818
ferris-says = "0.3.2"
1919
home = "0.5.9"
2020
indicatif = "0.17.9"

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codesnap"
3-
version = "0.10.9"
3+
version = "0.11.0"
44
edition = "2021"
55
description = "Pure Rust library for generating beautiful code snapshots"
66
license = "MIT"

core/src/components/highlight_code_block.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
use crate::{config::HighlightLine, edges::padding::Padding, utils::color::RgbaColor};
1+
use crate::{
2+
config::HighlightLine,
3+
edges::{edge::Edge, padding::Padding},
4+
utils::color::RgbaColor,
5+
};
26

37
use super::{
48
editor::code::CODE_LINE_HEIGHT,
@@ -105,7 +109,7 @@ impl HighlightCodeBlock {
105109
let rect = Rect::from_xywh(
106110
render_params.x - self.editor_padding.left,
107111
render_params.y + start_y_offset,
108-
parent_style.width,
112+
parent_style.width + self.editor_padding.horizontal(),
109113
// If end_line_number is equal to start_line_number, the height should be line_height
110114
(end_line_number - start_line_number + 1) as f32 * CODE_LINE_HEIGHT,
111115
)

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ edition = "2021"
66
[dependencies]
77
schemars = "0.8.22"
88
serde_json = "1.0.140"
9-
codesnap = { path = "../core", version = "0.10.8" }
9+
codesnap = { path = "../core", version = "0.11.0" }
1010
clap = { version = "4.5.21", features = ["derive"] }
1111

0 commit comments

Comments
 (0)