chore: merge dev
This commit is contained in:
parent
be950963f5
commit
cb12a3ba24
2 changed files with 8 additions and 3 deletions
|
|
@ -6,9 +6,10 @@ import { IdeMessengerContext } from "../../../context/IdeMessenger";
|
|||
|
||||
export interface FileInfoProps {
|
||||
filepath: string;
|
||||
range?: string;
|
||||
}
|
||||
|
||||
const FileInfo = ({ filepath }: FileInfoProps) => {
|
||||
const FileInfo = ({ filepath, range }: FileInfoProps) => {
|
||||
const ideMessenger = useContext(IdeMessengerContext);
|
||||
|
||||
// TODO: Need to turn into relative or fq path
|
||||
|
|
@ -25,7 +26,10 @@ const FileInfo = ({ filepath }: FileInfoProps) => {
|
|||
onClick={onClickFileName}
|
||||
>
|
||||
<FileIcon height="20px" width="20px" filename={filepath} />
|
||||
<span className="runcate hover:underline">{getBasename(filepath)}</span>
|
||||
<span className="truncate hover:underline">
|
||||
{getBasename(filepath)}
|
||||
{range && ` ${range}`}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ export interface StepContainerPreToolbarProps {
|
|||
filepath: string;
|
||||
isGeneratingCodeBlock: boolean;
|
||||
codeBlockIndex: number; // To track which codeblock we are applying
|
||||
range?: string;
|
||||
children: any;
|
||||
}
|
||||
|
||||
|
|
@ -177,7 +178,7 @@ export default function StepContainerPreToolbar(
|
|||
isExpanded ? "rotate-0" : "-rotate-90"
|
||||
}`}
|
||||
/>
|
||||
<FileInfo filepath={props.filepath} />
|
||||
<FileInfo filepath={props.filepath} range={props.range} />
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-3">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue