diff --git a/src/common/components/sidebar/outline-view.js b/src/common/components/sidebar/outline-view.js index 0e782945..2208d12d 100644 --- a/src/common/components/sidebar/outline-view.js +++ b/src/common/components/sidebar/outline-view.js @@ -43,7 +43,7 @@ function Item({ item, id, children, onOpenLink, onUpdate, onSelect }) { let { expanded, active } = item; return ( -
  • +
  • x.active); let currentItem = list[currentIndex]; @@ -166,6 +166,7 @@ function OutlineView({ outline, onNavigate, onOpenLink, onUpdate}) { ); } + let active = flatten(outline || []).findIndex(item => item.active); return (
    {outline === null ?
    : renderItems(outline)}
    diff --git a/src/common/components/sidebar/sidebar.js b/src/common/components/sidebar/sidebar.js index dfd51e0f..66a533e3 100644 --- a/src/common/components/sidebar/sidebar.js +++ b/src/common/components/sidebar/sidebar.js @@ -19,7 +19,7 @@ function Sidebar(props) { } return ( -
    +
    {props.type === 'pdf' && @@ -72,7 +72,7 @@ function Sidebar(props) {
    {props.annotationsView}
    -
    +
    {props.outlineView}
    diff --git a/src/common/components/toolbar.js b/src/common/components/toolbar.js index d491ddeb..ca1a4ddf 100644 --- a/src/common/components/toolbar.js +++ b/src/common/components/toolbar.js @@ -73,7 +73,7 @@ function Toolbar(props) { } return ( -
    +