Skip to content

Commit

Permalink
fix width of images in less
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Sep 24, 2024
1 parent c9ccd1f commit 9fc5bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* fix command prop in `export_view()` when in command [#967](https://github.com/jcubic/jquery.terminal/issues/967)
* fix processing images in less [#970](https://github.com/jcubic/jquery.terminal/issues/970)
* fix passing alt and class for image in less
* fix width of images in less

## 2.43.2
### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion js/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
return text.split('\n');
}
var parts = text.split(img_split_re).filter(Boolean);
var width = term.find('.terminal-fill').width();
var result = [];
(function recur() {
function concat_slices(slices) {
Expand All @@ -336,7 +337,6 @@
var cls = m[1];
var alt = m[3];
var rect = cursor_size();
var width = term.width();
var opts = {
width: width,
line_height: Math.floor(rect.height)
Expand Down

0 comments on commit 9fc5bb9

Please sign in to comment.