chore: inline edit list items
This commit is contained in:
parent
7a2b9fc4bb
commit
e87bfbe36f
1 changed files with 8 additions and 10 deletions
|
|
@ -56,15 +56,6 @@ export default function WorkingSet() {
|
|||
}
|
||||
}
|
||||
|
||||
const codeToEditItems = codeToEdit.map((code, i) => (
|
||||
<CodeToEditListItem
|
||||
key={code.filepath + i}
|
||||
code={code}
|
||||
onDelete={onDelete}
|
||||
onClickFilename={onClickFilename}
|
||||
/>
|
||||
));
|
||||
|
||||
return (
|
||||
<div className="bg-vsc-editor-background border-vsc-input-border mx-1 flex flex-col rounded-t-lg border border-b-0 border-solid px-1">
|
||||
<div className="text-lightgray flex items-center justify-between gap-1.5 py-1.5 pl-3 pr-2 text-xs">
|
||||
|
|
@ -74,7 +65,14 @@ export default function WorkingSet() {
|
|||
|
||||
{codeToEdit.length > 0 && (
|
||||
<ul className="no-scrollbar my-0 mb-1.5 max-h-[50vh] list-outside list-none overflow-y-auto pl-0">
|
||||
{codeToEditItems}
|
||||
{codeToEdit.map((code, i) => (
|
||||
<CodeToEditListItem
|
||||
key={code.filepath + i}
|
||||
code={code}
|
||||
onDelete={onDelete}
|
||||
onClickFilename={onClickFilename}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue