enhancement(web): stats and releases pretty loading (#731)

* enhancement(web): improved loading message

* dark mode fix

* added skeleton for loading

* placeholder

* handle activitytable loading

* name StatsItems in isLoading

* handling ReleaseTable loading

* made releasetable 10 rows while loading

* derp

* style: simplify loading state

---------

Co-authored-by: soup <soup@r4tio.cat>
Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
soup 2023-03-04 23:45:43 +01:00 committed by GitHub
parent 65f51da68e
commit d172e70046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 174 additions and 12 deletions

View file

@ -185,7 +185,16 @@ export const ActivityTable = () => {
);
if (isLoading)
return null;
return (
<div className="flex flex-col mt-12">
<h3 className="text-2xl font-medium leading-6 text-gray-900 dark:text-gray-200">
&nbsp;
</h3>
<div className="animate-pulse text-black dark:text-white">
<EmptyListState text="Loading..." />
</div>
</div>
);
return (
<div className="flex flex-col mt-12">