Commit 446ca380 by GuoRuqiang

聊天按钮适配移动端

parent f4c681d3
...@@ -57,7 +57,7 @@ let buttons = [ ...@@ -57,7 +57,7 @@ let buttons = [
onMouseLeave: (e) => { onMouseLeave: (e) => {
e.currentTarget.querySelector('svg').style.color = 'black'; e.currentTarget.querySelector('svg').style.color = 'black';
}, },
className: localStorage.getItem('chat_link') className: localStorage.getItem('chat_link') && !isMobile() //移动端不显示
? 'semi-navigation-item-normal' ? 'semi-navigation-item-normal'
: 'tableHiddle', : 'tableHiddle',
}, },
......
...@@ -86,16 +86,16 @@ const SiderBar = () => { ...@@ -86,16 +86,16 @@ const SiderBar = () => {
icon: <IconLayers />, icon: <IconLayers />,
className: isAdmin() ? 'semi-navigation-item-normal' : 'tableHiddle', className: isAdmin() ? 'semi-navigation-item-normal' : 'tableHiddle',
}, },
// 去掉侧边栏的聊天,换到HeaderBar // 修改侧边栏的聊天按钮,当移动端的时候才显示。
// { {
// text: '聊天', text: '聊天',
// itemKey: 'chat', itemKey: 'chat',
// to: '/chat', to: '/chat',
// icon: <IconComment />, icon: <IconComment />,
// className: localStorage.getItem('chat_link') className: isMobile() && localStorage.getItem('chat_link')
// ? 'semi-navigation-item-normal' ? 'semi-navigation-item-normal'
// : 'tableHiddle', : 'tableHiddle',
// }, },
{ {
text: '令牌', text: '令牌',
itemKey: 'token', itemKey: 'token',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment