Browse Source

fix: save

gemercheung 1 year ago
parent
commit
a84a462fa2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/Viewer.jsx

+ 5 - 2
src/components/Viewer.jsx

@@ -23,7 +23,11 @@ export default function Viewer(props) {
   });
   const debug = props.debug || false;
   return (
-    <LazyLoad height={lazyHeight} offset={1e4}>
+    <LazyLoad
+      height={lazyHeight}
+      offset={1e4}
+      className={`${debug ? props.name : ""}`}
+    >
       <ViewerInner {...props} debug={debug}>
         {allChildren}
       </ViewerInner>
@@ -484,7 +488,6 @@ class ViewerInner extends Component {
     return (
       <>
         <div
-          className={`processBar ${this.props.name}`}
           ref={this.processBarRef}
           css={css`
             position: fixed;