diff --git a/demo/index.tsx b/demo/index.tsx index 6bbb246..e425cd3 100644 --- a/demo/index.tsx +++ b/demo/index.tsx @@ -66,6 +66,7 @@ class App extends React.Component { onClose={() => { this.setState({ visible: false }); } } images={images} activeIndex={this.state.activeIndex} + attribute={false} />
diff --git a/src/ViewerCore.tsx b/src/ViewerCore.tsx index 56856eb..eca5bca 100644 --- a/src/ViewerCore.tsx +++ b/src/ViewerCore.tsx @@ -35,6 +35,7 @@ export default class ViewerCore extends React.Component { @@ -20,11 +21,14 @@ export default class ViewerToolbar extends React.Component + {`${this.props.alt}(${this.props.width} x ${this.props.height})`} +

+ ) : null; return (
-

- {`${this.props.alt}(${this.props.width} x ${this.props.height})`} -

+ {attributeNode}
  • {this.handleAction(ActionType.zoomIn);}}>