refactor: add opacity into no actived monitor

This commit is contained in:
moonrailgun 2023-12-29 21:05:35 +08:00
parent 1f950b516e
commit 22168e021f

View File

@ -37,7 +37,10 @@ export const MonitorList: React.FC = React.memo(() => {
{monitors.map((monitor) => (
<MonitorListItem
key={monitor.id}
className={clsx(selectedMonitorId === monitor.id && '!bg-opacity-20')}
className={clsx(
selectedMonitorId === monitor.id && '!bg-opacity-20',
monitor.active === false && 'opacity-40'
)}
workspaceId={workspaceId}
monitorId={monitor.id}
monitorName={monitor.name}