Skip to content

Commit

Permalink
actualy center loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nuexq committed May 3, 2024
1 parent 17b0d4d commit cc460cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/GithubProfileFinder/GithubProfileFinder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const GithubProfileFinder = () => {
</Button>
</div>
{loading ? (
<div className="absolute top-1/2 left-1/2 flex justify-center items-center">
<div className="absolute inset-0 m-auto flex justify-center items-center">
<div className="loader "></div>
</div>
) : userData !== null ? (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SearchAutoComplete/SearchAutoComplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const SearchAutoComplete = () => {
placeholder="Search Users Here..."
/>
{loading ? (
<div className="absolute w-screen h-screen flex justify-center items-center">
<div className="absolute inset-0 m-auto flex justify-center items-center">
<div className="loader "></div>
</div>
) : showDropDown && <Suggesstions handleClick={handleClick} data={filteredUsers} /> }
Expand Down

0 comments on commit cc460cd

Please sign in to comment.