Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/chat/chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ shiny-chat-container {
text-underline-offset: 4px;
text-decoration-thickness: 2px;

padding: 2px;
padding-left: 2px;
padding-right: 2px;

&:hover {
text-decoration-style: solid;
Expand Down
2 changes: 1 addition & 1 deletion js/text-area/textarea-autoresize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function update_height(target: HTMLTextAreaElement) {
if (target.scrollHeight > 0) {
// Automatically resize the textarea to fit its content.
target.style.height = "auto";
target.style.height = target.scrollHeight + "px";
target.style.height = target.scrollHeight + 2 + "px";
} else {
// The textarea is not visible on the page, therefore it has a 0 scroll height.

Expand Down
2 changes: 1 addition & 1 deletion shiny/www/py-shiny/chat/chat.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions shiny/www/py-shiny/chat/chat.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shiny/www/py-shiny/text-area/textarea-autoresize.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function callUpdateHeightWhenTargetIsVisible(target) {
function update_height(target) {
if (target.scrollHeight > 0) {
target.style.height = "auto";
target.style.height = target.scrollHeight + "px";
target.style.height = target.scrollHeight + 2 + "px";
} else {
callUpdateHeightWhenTargetIsVisible(target);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def test_accordion(page: Page, local_app: ShinyAppProc, is_webkit: bool) -> None
# Skip the rest of the test for webkit.
# Heights are not consistent with chrome and firefox
return
expect_to_have_style(test_text_area.loc, "height", "125px")
expect_to_have_style(test_text_area_w_rows.loc, "height", "125px")
expect_to_have_style(test_text_area.loc, "height", "127px")
expect_to_have_style(test_text_area_w_rows.loc, "height", "127px")

# Make sure the `rows` is consistent
test_text_area.expect_rows("1")
Expand Down
Loading