Skip to content

Commit f1b382d

Browse files
committed
fix css
1 parent bad554b commit f1b382d

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

apps/remix-ide/src/app/plugins/remix-ai-assistant.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ export class RemixAIAssistant extends ViewPlugin {
3838
}
3939

4040
async onActivation() {
41-
this.call('sidePanel', 'pinView', this.profile)
41+
const currentActivePlugin = await this.call('pinnedPanel', 'currentFocus')
42+
if (currentActivePlugin === 'remixaiassistant') {
43+
this.call('sidePanel', 'pinView', this.profile)
44+
await this.call('layout', 'maximiseSidePanel')
45+
}
4246
}
4347

4448
onDeactivation() {

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
4545
}) => {
4646
return (
4747
<div
48-
className="prompt-area d-flex flex-column gap-2 p-2"
48+
className="prompt-area d-flex flex-column gap-2 p-2 mx-2"
4949
style={{
5050
background: 'rgba(255,255,255,0.04)', // same dark tone as input row
5151
borderRadius: '4px'
@@ -151,18 +151,18 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
151151
<button
152152
onClick={handleAddContext}
153153
data-id="composer-ai-add-context"
154-
className={`btn mr-2 ${showContextOptions ? 'btn-primary' : 'btn-dark'}`}
154+
className={`btn mr-2 ${showContextOptions ? 'btn-dark' : 'btn-text'}`}
155155
>
156-
@Add context&nbsp;
157-
<i className={`fa fa-caret-${showContextOptions ? 'down' : 'up'}`}></i>
156+
Add context&nbsp;
157+
{/* <i className={`fa fa-caret-${showContextOptions ? 'down' : 'up'}`}></i> */}
158158
</button>
159159

160160
<button
161161
onClick={handleSetAssistant}
162-
className={`btn mr-2 ${showAssistantOptions ? 'btn-primary' : 'btn-dark'}`}
162+
className={`btn mr-2 ${showAssistantOptions ? 'btn-dark' : 'btn-text'}`}
163163
>
164164
@Set assistant&nbsp;
165-
<i className={`fa fa-caret-${showAssistantOptions ? 'down' : 'up'}`}></i>
165+
{/* <i className={`fa fa-caret-${showAssistantOptions ? 'down' : 'up'}`}></i> */}
166166
</button>
167167

168168
<button
@@ -200,7 +200,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
200200
return (
201201
<span
202202
key={f}
203-
className="badge badge-pill badge-secondary mr-1 aiContext-file"
203+
className="badge badge-info mr-1 aiContext-file text-success"
204204
style={{ cursor: 'pointer' }}
205205
onClick={clearContext}
206206
>
@@ -211,7 +211,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
211211
})}
212212
{contextFiles.length > 6 && (
213213
<span
214-
className="badge badge-pill badge-secondary"
214+
className="badge badge-info"
215215
style={{ cursor: 'pointer' }}
216216
onClick={clearContext}
217217
>

0 commit comments

Comments
 (0)