mirror of
https://github.com/NetEase/tango.git
synced 2026-09-03 06:33:51 +08:00
fix: fix context menu error on macOS (#170)
* fix: fix context menu error on macOS * fix: adjust context menu icon style
This commit is contained in:
@@ -12,7 +12,12 @@ const contextMenuStyle = css`
|
||||
}
|
||||
|
||||
.ant-dropdown-menu-title-content {
|
||||
padding-left: 20px;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.ant-dropdown-menu-item-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
.ant-dropdown-menu-item-icon + .ant-dropdown-menu-title-content {
|
||||
|
||||
@@ -66,7 +66,7 @@ export function ContextAction({
|
||||
option: 'Alt',
|
||||
shift: 'Shift',
|
||||
};
|
||||
const regexp = new RegExp(Object.keys(keyMap).join('|').replace(/\\+/, '\\+'), 'ig');
|
||||
const regexp = new RegExp(Object.keys(keyMap).join('|').replace(/\+/, '\\+'), 'ig');
|
||||
return hotkey.replace(regexp, (match) => keyMap[match.toLowerCase()]);
|
||||
}, [hotkey]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user