@@ -44,77 +44,93 @@ export const Header: React.FC<Props> = (props) => {
4444 < div className = { styles . header__types } >
4545 { props . target == TARGET . WEB && (
4646 < >
47- < UiKeycapWrapper char = { props . is_alt_pressed ? 'E' : undefined } >
48- < UiIconAccentButton
49- label = { web_prompt_type_labels [ 'edit-files' ] }
50- icon = "edit-sparkle"
51- is_active = { props . web_prompt_type == 'edit-files' }
52- active_color = "blue"
53- is_compact = {
54- ! props . is_landscape &&
55- ( props . web_prompt_type == 'edit-files'
56- ? compact_step >= 2
57- : compact_step >= 1 )
58- }
59- on_click = { ( ) => props . on_web_prompt_type_change ( 'edit-files' ) }
60- />
61- </ UiKeycapWrapper >
62- < UiKeycapWrapper char = { props . is_alt_pressed ? 'A' : undefined } >
63- < UiIconAccentButton
64- label = { web_prompt_type_labels [ 'ask-about-files' ] }
65- icon = "chat-sparkle"
66- is_active = { props . web_prompt_type == 'ask-about-files' }
67- active_color = "purple"
68- is_compact = {
69- ! props . is_landscape &&
70- ( props . web_prompt_type == 'ask-about-files'
71- ? compact_step >= 2
72- : compact_step >= 1 )
73- }
74- on_click = { ( ) =>
75- props . on_web_prompt_type_change ( 'ask-about-files' )
76- }
77- />
78- </ UiKeycapWrapper >
79- { props . is_landscape && (
80- < div
81- style = { {
82- visibility : 'hidden' ,
83- pointerEvents : 'none' ,
84- width : 0
85- } }
86- >
87- < UiIconButton codicon_icon = "chevron-left" />
88- { props . is_browser_connection_status_bar_closed && (
89- < UiStatusBar
90- icon = "codicon-debug-disconnect"
91- label = ""
92- actions = { [
93- {
94- id : 'install' ,
95- icon : 'codicon-add' ,
96- label : '' ,
97- title : '' ,
98- on_click : ( ) => { }
99- }
100- ] }
101- />
102- ) }
103- </ div >
104- ) }
47+ < div className = { styles . header__types__inner } >
48+ < UiKeycapWrapper char = { props . is_alt_pressed ? 'E' : undefined } >
49+ < UiIconAccentButton
50+ label = { web_prompt_type_labels [ 'edit-files' ] }
51+ icon = "edit-sparkle"
52+ is_active = { props . web_prompt_type == 'edit-files' }
53+ active_color = "blue"
54+ is_compact = {
55+ ! props . is_landscape &&
56+ ( props . web_prompt_type == 'edit-files'
57+ ? compact_step >= 2
58+ : compact_step >= 1 )
59+ }
60+ on_click = { ( ) =>
61+ props . on_web_prompt_type_change ( 'edit-files' )
62+ }
63+ />
64+ </ UiKeycapWrapper >
65+ < UiKeycapWrapper char = { props . is_alt_pressed ? 'A' : undefined } >
66+ < UiIconAccentButton
67+ label = { web_prompt_type_labels [ 'ask-about-files' ] }
68+ icon = "chat-sparkle"
69+ is_active = { props . web_prompt_type == 'ask-about-files' }
70+ active_color = "purple"
71+ is_compact = {
72+ ! props . is_landscape &&
73+ ( props . web_prompt_type == 'ask-about-files'
74+ ? compact_step >= 2
75+ : compact_step >= 1 )
76+ }
77+ on_click = { ( ) =>
78+ props . on_web_prompt_type_change ( 'ask-about-files' )
79+ }
80+ />
81+ </ UiKeycapWrapper >
82+ </ div >
10583 </ >
10684 ) }
10785 { props . target == TARGET . API && (
108- < UiIconAccentButton
109- label = { api_prompt_type_labels [ 'edit-files' ] }
110- icon = "edit-sparkle"
111- is_active = { props . api_prompt_type == 'edit-files' }
112- active_color = "blue"
113- is_compact = { ! props . is_landscape && compact_step >= 1 }
114- on_click = { ( ) => props . on_api_prompt_type_change ( 'edit-files' ) }
115- />
86+ < >
87+ < UiIconAccentButton
88+ label = { api_prompt_type_labels [ 'edit-files' ] }
89+ icon = "edit-sparkle"
90+ is_active = { props . api_prompt_type == 'edit-files' }
91+ active_color = "blue"
92+ is_compact = { ! props . is_landscape && compact_step >= 1 }
93+ on_click = { ( ) => props . on_api_prompt_type_change ( 'edit-files' ) }
94+ />
95+ </ >
96+ ) }
97+ { props . is_landscape && (
98+ < div
99+ style = { {
100+ visibility : 'hidden' ,
101+ pointerEvents : 'none' ,
102+ width : 0
103+ } }
104+ >
105+ { props . is_browser_connection_status_bar_closed && (
106+ < UiStatusBar
107+ icon = "codicon-debug-disconnect"
108+ label = ""
109+ actions = { [
110+ {
111+ id : 'install' ,
112+ icon : 'codicon-add' ,
113+ label : '' ,
114+ title : '' ,
115+ on_click : ( ) => { }
116+ }
117+ ] }
118+ />
119+ ) }
120+ </ div >
116121 ) }
117122 </ div >
123+
124+ { props . is_landscape && (
125+ < div
126+ style = { {
127+ visibility : 'hidden' ,
128+ pointerEvents : 'none'
129+ } }
130+ >
131+ < UiIconButton codicon_icon = "chevron-left" />
132+ </ div >
133+ ) }
118134 </ div >
119135 </ div >
120136 )
0 commit comments