Skip to content

Commit f64d7a8

Browse files
joeizangyann300
authored andcommitted
remove x padding. add x margins. fix tip list style. full width on convo. starters
1 parent 54b0b83 commit f64d7a8

File tree

1 file changed

+19
-7
lines changed
  • libs/remix-ui/remix-ai-assistant/src/components

1 file changed

+19
-7
lines changed

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,32 @@ export interface ChatHistoryComponentProps {
2424

2525
const AiChatIntro = (props) => {
2626
return (
27-
<div className="assistant-landing d-flex flex-column align-items-center justify-content-center text-center px-1 h-100">
27+
<div className="assistant-landing d-flex flex-column mx-1 align-items-center justify-content-center text-center h-100 w-100">
2828
<img src={assistantAvatar} alt="RemixAI logo" style={{ width: '120px' }} className="mb-3" />
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,
3232
answer questions about blockchain technology and assist you with your smart contracts.
3333
</p>
34-
<div className="d-flex flex-column" style={{ fontSize: '0.9rem' }}>
35-
<div className="d-flex flex-row align-items-center"><p className="font-italic m-1">{`<prompt>: `}</p><span>ask your question</span></div>
36-
<div className="d-flex flex-row align-items-center"><p className="font-italic m-1">{`/w <prompt>: `}</p><span>modify your code</span></div>
37-
<div className="d-flex flex-row align-items-center"><p className="font-italic m-1">{`/c <prompt>: `}</p><span>continue fixing compilation</span></div>
38-
<div className="d-flex flex-row align-items-center"><p className="font-italic m-1 mb-2">{`/g <prompt>: `}</p><span>generate a new workspace</span></div>
34+
<div className="d-flex flex-column w-100 p-1 justify-content-center" style={{ fontSize: '0.9rem' }}>
35+
<div className="d-flex flex-row align-items-center">
36+
<span className="font-italic">{`<prompt>: `}</span>
37+
<span className="font-italic">ask your question</span>
38+
</div>
39+
<div className="d-flex flex-row align-items-center">
40+
<span className="font-italic">{`/w <prompt>: `}</span>
41+
<span>modify your code</span>
42+
</div>
43+
<div className="d-flex flex-row align-items-center">
44+
<span className="font-italic">{`/c <prompt>: `}</span>
45+
<span>continue fixing compilation</span>
46+
</div>
47+
<div className="d-flex flex-row align-items-center">
48+
<span className="font-italic">{`/g <prompt>: `}</span>
49+
<span>generate a new workspace</span>
50+
</div>
3951
</div>
40-
<div className="d-flex flex-column mt-3">
52+
<div className="d-flex flex-column w-100 mt-3">
4153
{DEFAULT_SUGGESTIONS.map((s, index) => (
4254
<button
4355
key={s}

0 commit comments

Comments
 (0)