|
@@ -5,6 +5,7 @@ import classNames from 'classnames'
|
|
|
import { useTranslation, Trans } from 'react-i18next'
|
|
import { useTranslation, Trans } from 'react-i18next'
|
|
|
|
|
|
|
|
import OutlineRoot from './outline-root'
|
|
import OutlineRoot from './outline-root'
|
|
|
|
|
+import Icon from '../../../shared/components/icon'
|
|
|
import localStorage from '../../../infrastructure/local-storage'
|
|
import localStorage from '../../../infrastructure/local-storage'
|
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
|
|
|
|
|
@@ -33,11 +34,6 @@ function OutlinePane({
|
|
|
[isOpen]
|
|
[isOpen]
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- const expandCollapseIconClasses = classNames('fa', 'outline-caret-icon', {
|
|
|
|
|
- 'fa-angle-down': isOpen,
|
|
|
|
|
- 'fa-angle-right': !isOpen
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
const headerClasses = classNames('outline-pane', {
|
|
const headerClasses = classNames('outline-pane', {
|
|
|
'outline-pane-disabled': !isTexFile
|
|
'outline-pane-disabled': !isTexFile
|
|
|
})
|
|
})
|
|
@@ -70,7 +66,10 @@ function OutlinePane({
|
|
|
onClick={handleExpandCollapseClick}
|
|
onClick={handleExpandCollapseClick}
|
|
|
aria-label={expanded ? t('hide_outline') : t('show_outline')}
|
|
aria-label={expanded ? t('hide_outline') : t('show_outline')}
|
|
|
>
|
|
>
|
|
|
- <i className={expandCollapseIconClasses} />
|
|
|
|
|
|
|
+ <Icon
|
|
|
|
|
+ type={isOpen ? 'angle-down' : 'angle-right'}
|
|
|
|
|
+ classes={{ icon: 'outline-caret-icon' }}
|
|
|
|
|
+ />
|
|
|
<h4 className="outline-header-name">{t('file_outline')}</h4>
|
|
<h4 className="outline-header-name">{t('file_outline')}</h4>
|
|
|
{expanded ? (
|
|
{expanded ? (
|
|
|
<OverlayTrigger placement="top" overlay={tooltip} delayHide={100}>
|
|
<OverlayTrigger placement="top" overlay={tooltip} delayHide={100}>
|