Skip to content

Commit 7549a6a

Browse files
committed
Hide the more tooltip when the dropdown menu is open
- hide 'more' tooltip when dropdown is open └── packages └── ui └── src └── components └── editor └── common └── prompts └── PromptField ├── PromptField.module.scss ├── PromptField.stories.tsx ├── PromptField.tsx ├── hooks │ ├── use-drag-drop.ts │ ├── use-dropdown.ts │ ├── use-ghost-text.ts │ ├── use-handlers │ │ ├── handle-copy.ts │ │ ├── handle-cut.ts │ │ ├── handle-input-change.ts │ │ ├── handle-input-click.ts │ │ ├── handle-key-down.ts │ │ ├── handle-paste.ts │ │ ├── handle-submit.ts │ │ ├── index.ts │ │ ├── types.ts │ │ ├── use-handlers.ts │ │ └── utils.ts │ └── use-keyboard-shortcuts.ts └── index.ts
1 parent 9a3f8a5 commit 7549a6a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • packages/ui/src/components/editor/common/prompts/PromptField

‎packages/ui/src/components/editor/common/prompts/PromptField/PromptField.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export type PromptFieldProps = {
7373
repo_name: string,
7474
commit_hash: string,
7575
type: 'Commit' | 'CommitMessage',
76-
commit_message?: string,
76+
commit_message?: string
7777
) => void
7878
on_skill_click?: (agent: string, repo: string, skill_name: string) => void
7979
on_preview_prompt?: () => void
@@ -491,8 +491,12 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
491491
align="right"
492492
/>
493493
)}
494-
{is_more_hovered && (
495-
<Tooltip message={props.translations.more} align="right" offset={11} />
494+
{is_more_hovered && !is_dropdown_open && (
495+
<Tooltip
496+
message={props.translations.more}
497+
align="right"
498+
offset={11}
499+
/>
496500
)}
497501
<div
498502
className={styles.footer__left}

0 commit comments

Comments
 (0)