Skip to content

Commit d42bc2a

Browse files
fix(Message): updated compact message avatar size (#754)
Allowed overriding img size with avatarProps size Co-authored-by: Eric Olkowski <[email protected]>
1 parent 88bcec6 commit d42bc2a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/module/src/Message/Message.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
}
1919

2020
&-avatar.pf-chatbot__message-avatar--round.pf-v6-c-avatar {
21-
--pf-v6-c-avatar--Width: 3rem;
22-
--pf-v6-c-avatar--Height: 3rem;
21+
&:not(.pf-m-xl, .pf-m-lg, .pf-m-md, .pf-m-sm) {
22+
--pf-v6-c-avatar--Width: 3rem;
23+
--pf-v6-c-avatar--Height: 3rem;
24+
}
2325
--pf-v6-c-avatar--BorderRadius: var(--pf-t--global--border--radius--pill);
2426
}
2527

@@ -169,8 +171,10 @@
169171
}
170172

171173
.pf-chatbot__message-avatar.pf-chatbot__message-avatar--round.pf-v6-c-avatar {
172-
--pf-v6-c-avatar--Width: 2rem;
173-
--pf-v6-c-avatar--Height: 2rem;
174+
&:not(.pf-m-xl, .pf-m-lg, .pf-m-md, .pf-m-sm) {
175+
--pf-v6-c-avatar--Width: 1.5rem;
176+
--pf-v6-c-avatar--Height: 1.5rem;
177+
}
174178
}
175179

176180
.pf-chatbot__message-contents {

0 commit comments

Comments
 (0)