@@ -25,6 +25,8 @@ import GeneratingCodeLoader from "./GeneratingCodeLoader";
25
25
import RunInTerminalButton from "./RunInTerminalButton" ;
26
26
27
27
const TopDiv = styled . div `
28
+ display: flex;
29
+ flex-direction: column;
28
30
outline: 1px solid ${ vscCommandCenterInactiveBorder } ;
29
31
outline-offset: -0.5px;
30
32
border-radius: ${ defaultBorderRadius } ;
@@ -37,7 +39,6 @@ const ToolbarDiv = styled.div<{ isExpanded: boolean }>`
37
39
display: flex;
38
40
justify-content: space-between;
39
41
align-items: center;
40
- background: inherit;
41
42
font-size: ${ getFontSize ( ) - 2 } px;
42
43
padding: 4px 6px;
43
44
margin: 0;
@@ -181,31 +182,27 @@ export default function StepContainerPreToolbar(
181
182
182
183
return (
183
184
< TopDiv >
184
- < ToolbarDiv isExpanded = { isExpanded } className = "find-widget-skip" >
185
- < div className = "flex min -w-0 max-w-[45%] items-center" >
185
+ < ToolbarDiv isExpanded = { isExpanded } className = "find-widget-skip gap-3 " >
186
+ < div className = "flex max -w-72 flex-row items-center" >
186
187
< ChevronDownIcon
187
188
onClick = { onClickExpand }
188
- className = { `h-3.5 w-3.5 shrink-0 cursor-pointer text-gray-400 hover:brightness-125 ${
189
+ className = { `h-3.5 w-3.5 flex- shrink-0 cursor-pointer text-gray-400 hover:brightness-125 ${
189
190
isExpanded ? "rotate-0" : "-rotate-90"
190
191
} `}
191
192
/>
192
- < div className = "w-full min-w-0" >
193
- < FileInfo
194
- relativeFilepath = { props . relativeFilepath }
195
- range = { props . range }
196
- />
197
- </ div >
193
+ < FileInfo
194
+ relativeFilepath = { props . relativeFilepath }
195
+ range = { props . range }
196
+ />
198
197
</ div >
199
198
200
199
< div className = "flex items-center gap-3 max-sm:gap-1.5" >
201
- { isGeneratingCodeBlock && (
200
+ { isGeneratingCodeBlock ? (
202
201
< GeneratingCodeLoader
203
202
showLineCount = { ! isExpanded }
204
203
codeBlockContent = { codeBlockContent }
205
204
/>
206
- ) }
207
-
208
- { ! isGeneratingCodeBlock && (
205
+ ) : (
209
206
< >
210
207
< CopyButton text = { props . codeBlockContent } />
211
208
{ isTerminalCodeBlock ( props . language , props . codeBlockContent ) ? (
0 commit comments