refactor: add opacity into no actived monitor
This commit is contained in:
parent
1f950b516e
commit
22168e021f
@ -37,7 +37,10 @@ export const MonitorList: React.FC = React.memo(() => {
|
|||||||
{monitors.map((monitor) => (
|
{monitors.map((monitor) => (
|
||||||
<MonitorListItem
|
<MonitorListItem
|
||||||
key={monitor.id}
|
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}
|
workspaceId={workspaceId}
|
||||||
monitorId={monitor.id}
|
monitorId={monitor.id}
|
||||||
monitorName={monitor.name}
|
monitorName={monitor.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user