Skip to content

Commit

Permalink
cleanup editor export (google#4086)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Feb 1, 2023
1 parent 8d63780 commit f68fba9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ const onProgress = (event) => {
updatingBar.style.width = \`\${event.detail.totalProgress * 100}%\`;
if (event.detail.totalProgress === 1) {
progressBar.classList.add('hide');
event.target.removeEventListener('progress', onProgress);
} else {
progressBar.classList.remove('hide');
if (event.detail.totalProgress === 0) {
event.target.querySelector('.center-pre-prompt').classList.add('hide');
}
}
};
document.querySelector('model-viewer').addEventListener('progress', onProgress);`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

import {html} from 'lit';

import {getMobileModelViewer} from '../mobile_view/reducer';
import {getModelViewer} from '../model_viewer_preview/reducer';

Expand All @@ -42,9 +43,6 @@ export const onProgress = (event) => {
event.target.removeEventListener('progress', onProgress);
} else {
progressBar.classList.remove('hide');
if (event.detail.totalProgress === 0) {
event.target.querySelector('.center-pre-prompt')?.classList.add('hide');
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ export const modelViewerStyles: CSSResult = css`:not(:defined) > * {
display: none;
}
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
}
model-viewer {
Expand Down

0 comments on commit f68fba9

Please sign in to comment.