Update CodeBlockToolbar.tsx

This commit is contained in:
Test 2024-09-18 10:14:48 -07:00
parent 5cc345a22f
commit f09044bc15

View file

@ -253,16 +253,12 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
className="flex items-center cursor-pointer py-0.5 px-0.5"
onClick={onClickHeader}
>
{props.filename && (
<>
<FileIcon
filename={props.filename || props.language}
height="18px"
width="18px"
/>
<span className="hover:brightness-125 ml-1">{props.filename}</span>{" "}
</>
)}
<FileIcon
filename={props.filename || props.language}
height="18px"
width="18px"
/>
<span className="hover:brightness-125 ml-1">{props.filename}</span>{" "}
</div>
<div className="flex items-center">