Skip to content

Commit c5d9b9b

Browse files
cpsievertgadenbuie
andauthored
Custom icon styling tweaks (#1877)
Co-authored-by: Garrick Aden-Buie <garrick@posit.co>
1 parent 6e8b3cf commit c5d9b9b

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

js/chat/chat.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ shiny-chat-message {
8383
// images and avatars are full-bleed
8484
height: 100%;
8585
width: 100%;
86+
max-width: 100%;
87+
max-height: 100%;
8688
margin: 0 !important;
8789
object-fit: contain;
8890
}
@@ -95,6 +97,13 @@ shiny-chat-message {
9597
max-height: 66%;
9698
max-width: 66%;
9799
}
100+
101+
// Provide .border-0 as a way to opt-out of border container
102+
&:has(> .border-0) {
103+
border: none;
104+
border-radius: unset;
105+
overflow: unset;
106+
}
98107
}
99108

100109
/* Vertically center the 2nd column (message content) */

shiny/www/py-shiny/chat/chat.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/chat/chat.css.map

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

0 commit comments

Comments
 (0)