mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
TorrentListCell: passthrough clicks
TorrentListCell elements can block click events of TorrentListRow, and prevents users from opening the details panel when they double click. This is especially visible with large elements like percentage bar. This change declares the cell as unclickable, so events can be processed.
This commit is contained in:
@@ -170,6 +170,7 @@ const TorrentListCell: FC<TorrentListCellProps> = observer(
|
||||
className={
|
||||
classNameOverride ? className : classnames('torrent__detail', `torrent__detail--${column}`, className)
|
||||
}
|
||||
css={{pointerEvents: 'none', userSelect: 'none'}}
|
||||
role="cell"
|
||||
style={{width: `${width}px`}}>
|
||||
{icon}
|
||||
|
||||
@@ -121,7 +121,7 @@ const TorrentListRowExpanded = observer(
|
||||
onTouchEnd={handleTouchEnd}
|
||||
onKeyPress={handleKeyPress}
|
||||
ref={ref}>
|
||||
<div className="torrent__details__section__wrapper">
|
||||
<div css={{alignItems: 'center', display: 'flex'}}>
|
||||
{primarySection}
|
||||
<div className="torrent__details__section torrent__details__section--secondary">{secondarySection}</div>
|
||||
</div>
|
||||
|
||||
@@ -374,11 +374,6 @@ $more-info--border: floating-action.$textbox-repeater--button--border;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user