make batch list file name overflow to the left #2582

pull/2575/head
Mikael Finstad 9 months ago
parent 251106bcb0
commit 2511062d9f
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -71,9 +71,11 @@ function BatchFile({ path, index, isOpen, isSelected, name, onSelect, onDelete,
title={path}
onClick={handleClick}
>
<FaFile size={14} style={{ color: isSelected ? primaryTextColor : undefined, flexShrink: 0 }} />
<div style={{ flexBasis: 4, flexShrink: 0 }} />
<div style={{ whiteSpace: 'nowrap', overflow: 'hidden' }}>{index + 1}. {name}</div>
<FaFile style={{ color: isSelected ? primaryTextColor : undefined, flexShrink: 0, fontSize: '1em', marginRight: '.1em' }} />
<div style={{ flexShrink: 0, marginRight: '.1em' }}>{index + 1}.</div>
<div style={{ whiteSpace: 'nowrap', overflow: 'hidden', direction: 'rtl' }}>
{name}
</div>
<div style={{ flexGrow: 1 }} />
{isOpen ? (
<FaAngleRight style={{ color: 'var(--gray-9)', fontSize: '.9em', marginRight: '-.3em', flexShrink: 0 }} />

Loading…
Cancel
Save