mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-07 18:42:11 +08:00
fix(ui): unify delay color handling in ProxyItem and TestItem components #6829
This commit is contained in:
@@ -248,12 +248,12 @@ export const ProxyItemMini = (props: Props) => {
|
||||
e.stopPropagation()
|
||||
onDelay()
|
||||
}}
|
||||
color={delayManager.formatDelayColor(delayValue, timeout)}
|
||||
sx={({ palette }) =>
|
||||
!proxy.provider
|
||||
sx={({ palette }) => ({
|
||||
color: delayManager.formatDelayColor(delayValue, timeout),
|
||||
...(!proxy.provider
|
||||
? { ':hover': { bgcolor: alpha(palette.primary.main, 0.15) } }
|
||||
: {}
|
||||
}
|
||||
: {}),
|
||||
})}
|
||||
>
|
||||
{delayManager.formatDelay(delayValue, timeout)}
|
||||
</Widget>
|
||||
|
||||
@@ -214,12 +214,12 @@ export const ProxyItem = (props: Props) => {
|
||||
e.stopPropagation()
|
||||
onDelay()
|
||||
}}
|
||||
color={delayManager.formatDelayColor(delayValue, timeout)}
|
||||
sx={({ palette }) =>
|
||||
!proxy.provider
|
||||
sx={({ palette }) => ({
|
||||
color: delayManager.formatDelayColor(delayValue, timeout),
|
||||
...(!proxy.provider
|
||||
? { ':hover': { bgcolor: alpha(palette.primary.main, 0.15) } }
|
||||
: {}
|
||||
}
|
||||
: {}),
|
||||
})}
|
||||
>
|
||||
{delayManager.formatDelay(delayValue, timeout)}
|
||||
</Widget>
|
||||
|
||||
Reference in New Issue
Block a user