This commit is contained in:
Mathew Pareles 2025-01-17 16:56:46 -08:00
parent dce0378eb2
commit 1521038e03
2 changed files with 6 additions and 4 deletions

View file

@ -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';

View file

@ -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>
})}