@@ -8,6 +8,8 @@ import { Chevron } from './components/Chevron'
88import { IconRecord } from './types'
99import { onLineContext } from '@remix-ui/app'
1010import { CustomTooltip } from '@remix-ui/helper'
11+ import { Registry } from '@remix-project/remix-lib'
12+
1113export interface RemixUiVerticalIconsPanelProps {
1214 verticalIconsPlugin : Plugin
1315 icons : IconRecord [ ]
@@ -109,29 +111,31 @@ const RemixUiVerticalIconsPanel = ({ verticalIconsPlugin, icons }: RemixUiVertic
109111 />
110112 </ div >
111113 < div className = "remixui_default-icons-container border-0" >
112- { scrollableRef . current && scrollableRef . current . scrollHeight > scrollableRef . current . clientHeight ? (
114+ { scrollableRef . current && scrollableRef . current . scrollHeight > scrollableRef . current . clientHeight ? (
113115 < Chevron divElementRef = { scrollableRef } direction = "down" cssRule = { 'fa fa-chevron-down remixui_icon-chevron my-0' } />
114- ) : null }
116+ ) : null }
115117 < IconList
116118 theme = { theme }
117119 icons = { icons . filter ( ( p ) => p . profile . name === 'settings' || p . profile . name === 'pluginManager' ) }
118120 verticalIconsPlugin = { verticalIconsPlugin }
119121 itemContextAction = { itemContextAction }
120122 />
121- { online ?
122- < CustomTooltip
123- placement = "top"
124- tooltipText = { 'You are online' }
125- >
126- < i className = "fa-solid fa-wifi text-success p-2" > </ i >
127- </ CustomTooltip >
128- :
129- < CustomTooltip
130- placement = "top"
131- tooltipText = { 'You are offline' }
132- >
133- < i className = "fa-solid fa-wifi-exclamation text-danger p-2" > </ i >
134- </ CustomTooltip > }
123+ { Registry . getInstance ( ) . get ( 'platform' ) . api . isDesktop ( ) ? (
124+ online ? (
125+ < CustomTooltip
126+ placement = "top"
127+ tooltipText = { 'You are online' }
128+ >
129+ < i className = "fa-solid fa-wifi text-success p-2" > </ i >
130+ </ CustomTooltip > )
131+ :
132+ ( < CustomTooltip
133+ placement = "top"
134+ tooltipText = { 'You are offline' }
135+ >
136+ < i className = "fa-solid fa-wifi-exclamation text-danger p-2" > </ i >
137+ </ CustomTooltip > )
138+ ) : null }
135139 </ div >
136140 </ div >
137141 </ div >
0 commit comments