Commit 969ca17e authored by tom's avatar tom

fix search sidebar layout

parent be50eae3
......@@ -44,10 +44,26 @@ const CodeEditorSearchSection = ({ data, onItemClick }: Props) => {
width="20px"
height="22px"
py="3px"
flexShrink={ 0 }
/>
<CodeEditorFileIcon mr="4px" fileName={ fileName }/>
<span>{ fileName }</span>
<Box className="monaco-count-badge" ml="auto" bgColor={ themeColors['badge.background'] }>{ data.matches.length }</Box>
<Box
mr="8px"
whiteSpace="nowrap"
overflow="hidden"
textOverflow="ellipsis"
textAlign="left"
>
{ fileName }
</Box>
<Box
className="monaco-count-badge"
ml="auto"
bgColor={ themeColors['badge.background'] }
flexShrink={ 0 }
>
{ data.matches.length }
</Box>
</AccordionButton>
<AccordionPanel p={ 0 }>
{ data.matches.map((match) => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment