Skip to content

Commit c863b81

Browse files
committed
Simplify edit format tooltip by removing redundant format name from title
1 parent 781aec0 commit c863b81

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/ui/src/components/editor/panel/PromptField/PromptField.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
410410
]]: is_selected
411411
}
412412
)}
413-
title={`Edit format instructions '${
414-
format == 'before-after' ? 'before/after' : format
415-
}' to include with the prompt ${edit_format_shortcuts[format]}\n\n${
413+
title={`Edit format instructions to include with the prompt ${edit_format_shortcuts[format]}\n\n${
416414
props.edit_format_instructions?.[format]
417415
}`}
418416
onClick={() => props.on_edit_format_change?.(format)}

0 commit comments

Comments
 (0)