Skip to content

Commit

Permalink
fix(OnlyOffice): Center the spinner before editor is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Aug 30, 2023
1 parent 76b503d commit c8d1eb2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/drive/web/modules/views/OnlyOffice/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ const View = ({ id, apiUrl, docEditorConfig }) => {
return (
<>
{!isEditorReady && (
<Spinner
className="u-flex u-flex-items-center u-flex-justify-center u-flex-grow-1"
size="xxlarge"
/>
<div className="u-flex u-flex-items-center u-flex-justify-center u-flex-grow-1">
<Spinner size="xxlarge" />
</div>
)}
<div id="onlyOfficeEditor" />
{showReadOnlyFab && <ReadOnlyFab />}
Expand Down

0 comments on commit c8d1eb2

Please sign in to comment.