File tree Expand file tree Collapse file tree
ui/src/components/editor/panel/Dropdown
vscode/src/views/panel/frontend/Main/MainView Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55.button {
66 display : flex ;
77 align-items : center ;
8- gap : var (--padding-4px );
8+ gap : var (--padding-2px );
99 padding : 0 var (--padding-5px ) 0 var (--padding-7px );
1010 height : 24px ;
1111 border : 1px solid var (--cwc-border-color-dimmed );
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const WithInfo = () => {
3636 options = { options }
3737 selected_value = { selected }
3838 on_change = { set_selected }
39- info = "shift+tab "
39+ info = "mode "
4040 />
4141 </ div >
4242 )
Original file line number Diff line number Diff line change @@ -41,10 +41,6 @@ export const Dropdown = <T extends string>(props: Dropdown.Props<T>) => {
4141 set_just_opened ( false )
4242 }
4343
44- const handle_mouse_enter = ( ) => {
45- set_just_opened ( false )
46- }
47-
4844 const handle_wheel = ( event : React . WheelEvent < HTMLDivElement > ) => {
4945 event . preventDefault ( )
5046 event . stopPropagation ( )
@@ -120,7 +116,6 @@ export const Dropdown = <T extends string>(props: Dropdown.Props<T>) => {
120116
121117 { is_open && (
122118 < DropdownMenu
123- on_mouse_enter = { handle_mouse_enter }
124119 items = { props . options . map ( ( option ) => ( {
125120 label : option . label ,
126121 on_click : ( ) => handle_select ( option . value ) ,
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ import { Scrollable } from '@ui/components/editor/panel/Scrollable'
1818import { BrowserExtensionMessage as UiBrowserExtensionMessage } from '@ui/components/editor/panel/BrowserExtensionMessage'
1919import { ApiToolConfiguration } from '@/views/panel/types/messages'
2020import { use_last_choice_button_title } from './hooks/use-last-choice-button-title'
21- import { use_cycle_mode } from './hooks/use-cycle-mode'
2221import { ContextUtilisation as UiContextUtilisation } from '@ui/components/editor/panel/ContextUtilisation'
23- import { WEB_MODES , API_MODES } from './modes'
2422import { Header } from './components/Header'
2523
2624type Props = {
@@ -102,17 +100,6 @@ type Props = {
102100}
103101
104102export const MainView : React . FC < Props > = ( props ) => {
105- use_cycle_mode ( {
106- home_view_type : props . home_view_type ,
107- on_home_view_type_change : props . on_home_view_type_change ,
108- web_mode : props . web_mode ,
109- on_web_mode_change : props . on_web_mode_change ,
110- api_mode : props . api_mode ,
111- on_api_mode_change : props . on_api_mode_change ,
112- web_modes : WEB_MODES ,
113- api_modes : API_MODES
114- } )
115-
116103 const is_in_code_completions_mode =
117104 ( props . home_view_type == HOME_VIEW_TYPES . WEB &&
118105 props . web_mode == 'code-completions' ) ||
Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ export const Header: React.FC<Props> = (props) => {
6969 < UiIconButton
7070 codicon_icon = "chevron-left"
7171 on_click = { props . on_show_home }
72- title = "Return to Home "
72+ title = "Return"
7373 />
7474 < button
7575 className = { styles [ 'header__left__toggler' ] }
7676 onClick = { handle_heading_click }
77- title = "Toggle view type (shift+esc) "
77+ title = "Change view"
7878 >
7979 { props . home_view_type == HOME_VIEW_TYPES . WEB
8080 ? 'New chat'
@@ -91,9 +91,8 @@ export const Header: React.FC<Props> = (props) => {
9191 ) }
9292 selected_value = { props . web_mode }
9393 on_change = { props . on_web_mode_change }
94- info = "shift+tab"
9594 max_width = { dropdown_max_width }
96- title = "The mode influences the structure of the message "
95+ info = " mode"
9796 />
9897 ) }
9998 { props . home_view_type == HOME_VIEW_TYPES . API && (
@@ -103,9 +102,8 @@ export const Header: React.FC<Props> = (props) => {
103102 ) }
104103 selected_value = { props . api_mode }
105104 on_change = { props . on_api_mode_change }
106- info = "shift+tab"
107105 max_width = { dropdown_max_width }
108- title = "The mode influences the structure of the message "
106+ info = " mode"
109107 />
110108 ) }
111109 </ div >
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments