You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add almost-perfect (#211) cross-browser Autogrow plugin (fixes#206); make Autogrow fit dialogs by default; make dialogs fully disappear when closed (#210)
height:calc(var(--code-input_autogrow_min-height) -var(--padding-top,16px) -var(--padding-bottom,16px))!important; /* So minimum height possible while containing highlighted code */
width: max-content; /* Using unset rather than max-content makes always 100% width. */
26
30
max-width:var(--code-input_autogrow_max-width);
27
31
}
28
-
29
32
code-input.code-input_autogrow_widthtextarea {
30
33
width:calc(var(--code-input_autogrow_min-width) -var(--padding-left,16px) -var(--padding-right,16px))!important; /* So minimum width possible while containing highlighted code */
width:calc(var(--code-input_autogrow_min-width) -max(3.8em,var(--padding-left,16px)) -var(--padding-right,16px))!important; /* So minimum width possible while containing highlighted code */
textarea.parentElement.style.setProperty("--code-input_autogrow_max-width","calc(infinity * 1px)");// So can grow beyond width of viewport - default CSS limits to width
523
524
addText(textarea,"// A very very very very extremely vastly very very very very long line of code is written here in this very comment; yes, this very comment!");
524
525
awaitwaitAsync(100);// Wait for width to update
525
526
@@ -529,7 +530,6 @@ console.log("I've got another line!", 2 < 3, "should be true.");
529
530
awaitwaitAsync(200);// Wait for width to update
530
531
531
532
testAssertion("Autogrow","font-size Decrease Decreases Width",textarea.parentElement.clientWidth<fullWidth,`${textarea.parentElement.clientWidth} should be < ${fullWidth}`);
0 commit comments