react-loading-overlay icon indicating copy to clipboard operation
react-loading-overlay copied to clipboard

spinner should be vertically centered within viewport, not within document content

Open timrobinson33 opened this issue 2 years ago • 1 comments

If the document is longer than the viewport, the spinner can only be seen when the middle of the document is scrolled into view.

I would have expected the overlay panel to fill the viewport and float over the document (at least as an option, even if there is a good reason to have it work the current way sometimes)

timrobinson33 avatar Apr 11 '22 17:04 timrobinson33

Give the overlay with the background color a position of fixed. Also make sure to keep the loader component above the component you are calling it from. Use fragmentation to do this. This so that no parent styling would affect it.

alexander01202 avatar Jun 06 '22 00:06 alexander01202