fix(settings): highlight control rows on hover (#8313)

This commit is contained in:
HowGeGe
2026-11-18 13:59:08 +00:00
committed by GitHub
parent 7d8fec7314
commit 60456a2c84
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -63,6 +63,7 @@
- 优化连接、规则和日志筛选:切换页面后保留过滤条件
- 优化全局模式代理列表:仅显示 `GLOBAL` 节点,选中其中的策略组时才显示该组
- 优化设置页开关和选项所在行的鼠标悬停高亮,便于对应说明与控件
**🍎 macOS**
+8 -1
View File
@@ -62,7 +62,14 @@ export const SettingItem: React.FC<ItemProps> = ({
</ListItemButton>
</ListItem>
) : (
<ListItem data-setting-target={searchTarget} sx={{ pt: '5px', pb: '5px' }}>
<ListItem
data-setting-target={searchTarget}
sx={{
pt: '5px',
pb: '5px',
'&:hover': { bgcolor: 'action.hover' },
}}
>
<ListItemText primary={primary} secondary={secondary} />
{children}
</ListItem>