Skip to content

Commit 07552db

Browse files
committed
Adjust tooltip position for the last status bar action
1 parent d4d8b43 commit 07552db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/ui/src/components/editor/prompt-view/StatusBar

‎packages/ui/src/components/editor/prompt-view/StatusBar/StatusBar.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export const StatusBar: React.FC<Props> = (props) => {
7979
message={action.tooltip}
8080
position="top"
8181
align={action.tooltip_align || 'center'}
82-
offset={6}
83-
translate={{ y: -7 }}
82+
offset={is_last ? 15 : 6}
83+
translate={{ y: -7, x: is_last ? 8 : undefined }}
8484
/>
8585
)}
8686
<span className={cn('codicon', action.icon)} />

0 commit comments

Comments
 (0)