mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
improve batch file color
selected file
This commit is contained in:
parent
fda8cdd9c9
commit
19224bff2c
@ -18,8 +18,8 @@ function BatchFile({ path, isOpen, isSelected, name, onSelect, onDelete }: {
|
|||||||
useContextMenu(ref, contextMenuTemplate);
|
useContextMenu(ref, contextMenuTemplate);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={ref} role="button" style={{ background: isSelected ? 'var(--gray6)' : undefined, fontSize: 13, padding: '3px 6px', display: 'flex', alignItems: 'center', alignContent: 'flex-start' }} title={path} onClick={() => onSelect(path)}>
|
<div ref={ref} role="button" style={{ background: isSelected ? 'var(--gray7)' : undefined, fontSize: 13, padding: '3px 6px', display: 'flex', alignItems: 'center', alignContent: 'flex-start' }} title={path} onClick={() => onSelect(path)}>
|
||||||
<FaFile size={14} style={{ color: primaryTextColor, flexShrink: 0 }} />
|
<FaFile size={14} style={{ color: isSelected ? primaryTextColor : undefined, flexShrink: 0 }} />
|
||||||
<div style={{ flexBasis: 4, flexShrink: 0 }} />
|
<div style={{ flexBasis: 4, flexShrink: 0 }} />
|
||||||
<div style={{ whiteSpace: 'nowrap', cursor: 'pointer', overflow: 'hidden' }}>{name}</div>
|
<div style={{ whiteSpace: 'nowrap', cursor: 'pointer', overflow: 'hidden' }}>{name}</div>
|
||||||
<div style={{ flexGrow: 1 }} />
|
<div style={{ flexGrow: 1 }} />
|
||||||
|
Loading…
Reference in New Issue
Block a user