feat: map oa-wechat-notify icon for mobile menu grid
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
239998ec44
commit
b79ff2d830
3 files changed
+8
-2
No files matched your search
@@ -103,6 +103,8 @@ def _mobile_menu_icon(path: str) -> str:
|
||||
return "oa-mine"
|
||||
if "oa/cc" in p:
|
||||
return "oa-cc"
|
||||
if "oa/wechat-notify" in p:
|
||||
return "oa-wechat-notify"
|
||||
if "form-sink" in p:
|
||||
return "orders-o"
|
||||
return "apps-o"
|
||||
@@ -121,6 +123,7 @@ def _mobile_menu_icon_colors(path: str) -> dict:
|
||||
"oa/done",
|
||||
"oa/mine",
|
||||
"oa/cc",
|
||||
"oa/wechat-notify",
|
||||
)
|
||||
):
|
||||
return {"iconBg": "transparent", "iconFg": ""}
|
||||
|
||||
@@ -54,7 +54,8 @@
|
||||
'oa-pending': '/static/menu-icons/oa-pending.png',
|
||||
'oa-done': '/static/menu-icons/oa-done.png',
|
||||
'oa-mine': '/static/menu-icons/oa-mine.png',
|
||||
'oa-cc': '/static/menu-icons/oa-cc.png'
|
||||
'oa-cc': '/static/menu-icons/oa-cc.png',
|
||||
'oa-wechat-notify': '/static/menu-icons/oa-wechat-notify.png'
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
@@ -9,7 +9,8 @@ const OA_PNG_ICONS = new Set([
|
||||
'oa-pending',
|
||||
'oa-done',
|
||||
'oa-mine',
|
||||
'oa-cc'
|
||||
'oa-cc',
|
||||
'oa-wechat-notify'
|
||||
])
|
||||
|
||||
export const MENU_ICON_COLOR_DEFAULTS = {
|
||||
@@ -19,6 +20,7 @@ export const MENU_ICON_COLOR_DEFAULTS = {
|
||||
'oa-done': { iconBg: 'transparent', iconFg: '' },
|
||||
'oa-mine': { iconBg: 'transparent', iconFg: '' },
|
||||
'oa-cc': { iconBg: 'transparent', iconFg: '' },
|
||||
'oa-wechat-notify': { iconBg: 'transparent', iconFg: '' },
|
||||
'orders-o': { iconBg: '#eef2f1', iconFg: '#3d524a' },
|
||||
'apps-o': { iconBg: '#eef2f1', iconFg: '#3d524a' }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user