mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
fixes
This commit is contained in:
parent
dce0378eb2
commit
1521038e03
2 changed files with 6 additions and 4 deletions
|
|
@ -1806,7 +1806,7 @@ class AcceptAllRejectAllWidget extends Widget implements IOverlayWidget {
|
|||
]);
|
||||
|
||||
// Style the container
|
||||
buttons.style.zIndex = '1';
|
||||
buttons.style.zIndex = '2';
|
||||
buttons.style.padding = '4px';
|
||||
buttons.style.display = 'flex';
|
||||
buttons.style.gap = '4px';
|
||||
|
|
|
|||
|
|
@ -315,7 +315,9 @@ export const SelectedFiles = (
|
|||
const isThisSelectionAFile = selection.selectionStr === null
|
||||
const isThisSelectionProspective = i > selections.length - 1
|
||||
|
||||
const selectionHTML = (<div key={`${isThisSelectionProspective}-${i}-${selections.length}`} // container for `selectionSummary` and `selectionText`
|
||||
const thisKey = `${isThisSelectionProspective}-${i}-${selections.length}`
|
||||
|
||||
const selectionHTML = (<div key={thisKey} // container for `selectionSummary` and `selectionText`
|
||||
className={`
|
||||
${isThisSelectionOpened ? 'w-full' : ''}
|
||||
`}
|
||||
|
|
@ -419,12 +421,12 @@ export const SelectedFiles = (
|
|||
}
|
||||
</div>)
|
||||
|
||||
return <>
|
||||
return <Fragment key={thisKey}>
|
||||
{selections.length > 0 && i === selections.length &&
|
||||
<div className='w-full'></div> // divider between `selections` and `prospectiveSelections`
|
||||
}
|
||||
{selectionHTML}
|
||||
</>
|
||||
</Fragment>
|
||||
|
||||
})}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue