Skip to content

Commit ddf9107

Browse files
committed
fix resize of the terminal with long prompt #919
The problem was that cmd was resized and overflowed then it was refreshed with new number of columns. This was causing visible empty lines caused by style of ::before pseudo selector before the each line (.cmd-line).
1 parent c189b81 commit ddf9107

8 files changed

+21
-9
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.39.4
2+
### Bugfix
3+
* fix init and resize of long prompt [#919](https://github.com/jcubic/jquery.terminal/issues/919)
4+
15
## 2.39.3
26
### Bugfix
37
* fix broken full screen terminal height on Desktop

css/jquery.terminal-src.css

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
scrollbar-gutter: stable;
8484
height: 100%;
8585
box-sizing: border-box;
86+
overflow-x: hidden;
8687
}
8788
terminal.terminal-temp {
8889
visibility: hidden;
@@ -287,6 +288,9 @@ body.full-screen-terminal {
287288
width: 0;
288289
display: inline-block;
289290
}
291+
.cmd .cmd-line {
292+
white-space: nowrap;
293+
}
290294
.terminal span[data-text],
291295
.cmd span[data-text] {
292296
display: inline-block;

css/jquery.terminal.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Copyright (c) 2011-2023 Jakub T. Jankiewicz <https://jcubic.pl/me>
1313
* Released under the MIT license
1414
*
15-
* Date: Sun, 07 Apr 2024 16:50:24 +0000
15+
* Date: Sun, 07 Apr 2024 17:14:02 +0000
1616
*/
1717
.terminal .terminal-output .format, .cmd .format,
1818
.cmd-prompt, .cmd-prompt div {
@@ -83,6 +83,7 @@
8383
scrollbar-gutter: stable;
8484
height: 100%;
8585
box-sizing: border-box;
86+
overflow-x: hidden;
8687
}
8788
terminal.terminal-temp {
8889
visibility: hidden;
@@ -287,6 +288,9 @@ body.full-screen-terminal {
287288
width: 0;
288289
display: inline-block;
289290
}
291+
.cmd .cmd-line {
292+
white-space: nowrap;
293+
}
290294
.terminal span[data-text],
291295
.cmd span[data-text] {
292296
display: inline-block;

css/jquery.terminal.min.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/jquery.terminal.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* broken image by Sophia Bai from the Noun Project (CC-BY)
4343
*
44-
* Date: Sun, 07 Apr 2024 16:52:49 +0000
44+
* Date: Sun, 07 Apr 2024 17:14:01 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -5305,7 +5305,7 @@
53055305
// -------------------------------------------------------------------------
53065306
$.terminal = {
53075307
version: 'DEV',
5308-
date: 'Sun, 07 Apr 2024 16:52:49 +0000',
5308+
date: 'Sun, 07 Apr 2024 17:14:01 +0000',
53095309
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
53105310
color_names: [
53115311
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',

js/jquery.terminal.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)