File tree Expand file tree Collapse file tree
ui/src/components/editor/panel
vscode/src/views/panel/frontend/Main/MainView/components/Header Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
238238 ] ] : props . edit_format == format
239239 }
240240 ) }
241- title = { props . edit_format_instructions ?. [ format ] }
241+ title = { `Edit format instructions: ${ props . edit_format_instructions ?. [ format ] } ` }
242242 onClick = { ( ) => props . on_edit_format_change ?.( format ) }
243243 data-text = { format }
244244 >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export namespace Dropdown {
1414 on_change : ( value : T ) => void
1515 max_width ?: number
1616 info ?: string
17+ title ?: string
1718 }
1819}
1920
@@ -93,6 +94,7 @@ export const Dropdown = <T extends string>(props: Dropdown.Props<T>) => {
9394 className = { cn ( styles . button , { [ styles [ 'button--open' ] ] : is_open } ) }
9495 onClick = { handle_toggle }
9596 style = { { maxWidth : props . max_width } }
97+ title = { props . title }
9698 >
9799 < span className = { styles . button__label } >
98100 { selected_option ? selected_option . label : 'Select an option' }
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export const Header: React.FC<Props> = (props) => {
9393 on_change = { props . on_web_mode_change }
9494 info = "shift+tab"
9595 max_width = { dropdown_max_width }
96+ title = "The mode influences the structure of the message"
9697 />
9798 ) }
9899 { props . home_view_type == HOME_VIEW_TYPES . API && (
@@ -104,6 +105,7 @@ export const Header: React.FC<Props> = (props) => {
104105 on_change = { props . on_api_mode_change }
105106 info = "shift+tab"
106107 max_width = { dropdown_max_width }
108+ title = "The mode influences the structure of the message"
107109 />
108110 ) }
109111 </ div >
You can’t perform that action at this time.
0 commit comments