Skip to content

Commit a9e4260

Browse files
authored
[NO-ISSUE] Fix tool icon placement (#680)
* fixed tool icon placement + fixed prompt context margin * fixes * remove linkify
1 parent c72744a commit a9e4260

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/react/atlascode/rovo-dev/RovoDev.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ body {
157157
.tool-return-item-base {
158158
display: flex;
159159
flex-direction: row;
160-
align-items: center;
160+
align-items: flex-start;
161161
gap: 4px;
162162
}
163163

src/react/atlascode/rovo-dev/messaging/ChatMessageItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const ChatMessageItem: React.FC<{
3030
</div>
3131
{msg.source === 'User' && msg.context && (
3232
<div className="message-context">
33-
<PromptContextCollection content={msg.context} direction="column" align="right" />
33+
<PromptContextCollection content={msg.context} direction="column" align="right" inChat={true} />
3434
</div>
3535
)}
3636
</>

src/react/atlascode/rovo-dev/prompt-box/promptContext/promptContextCollection.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const PromptContextCollection: React.FC<{
1111
onToggleActiveItem?: (enabled: boolean) => void;
1212
readonly?: boolean;
1313
onRemoveContext?: (item: RovoDevContextItem) => void;
14-
}> = ({ content, direction = 'row', align = 'left', onToggleActiveItem, readonly = true, onRemoveContext }) => {
14+
inChat?: boolean;
15+
}> = ({ content, direction = 'row', align = 'left', onToggleActiveItem, readonly = true, onRemoveContext, inChat }) => {
1516
if (content.focusInfo?.invalid && !content.contextItems?.length) {
1617
return null;
1718
}
@@ -31,6 +32,7 @@ export const PromptContextCollection: React.FC<{
3132
gap: direction === 'column' ? 1 : 4,
3233
width: '100%',
3334
boxSizing: 'border-box',
35+
marginBottom: inChat ? '8px' : 0,
3436
}}
3537
>
3638
{/* Disabled for now in favor of the larger button outside the collection */}

0 commit comments

Comments
 (0)