Skip to content

Commit 0879a2a

Browse files
joeizangyann300
authored andcommitted
add custom css to handle container-query inside a media query for image.
1 parent f64d7a8 commit 0879a2a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

libs/remix-ui/remix-ai-assistant/src/components/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface ChatHistoryComponentProps {
2525
const AiChatIntro = (props) => {
2626
return (
2727
<div className="assistant-landing d-flex flex-column mx-1 align-items-center justify-content-center text-center h-100 w-100">
28-
<img src={assistantAvatar} alt="RemixAI logo" style={{ width: '120px' }} className="mb-3" />
28+
<img src={assistantAvatar} alt="RemixAI logo" style={{ width: '120px' }} className="mb-3 container-img" />
2929
<h5 className="mb-2">RemixAI</h5>
3030
<p className="mb-4" style={{ fontSize: '0.9rem' }}>
3131
RemixAI provides you personalized guidance as you build. It can break down concepts,

libs/remix-ui/remix-ai-assistant/src/css/remix-ai-assistant.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,3 +301,12 @@
301301
.border-box-sizing {
302302
box-sizing: border-box;
303303
}
304+
305+
@media (max-width: 1280px) {
306+
@container container-img (inline-size < 150px) {
307+
.container-img {
308+
width: 80px;
309+
min-height: 80px;
310+
}
311+
}
312+
}

0 commit comments

Comments
 (0)