mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-08-12 12:29:42 +00:00
feat: update to react 19, pixi.js v8, tailwind v4, shad-cn
Also: - center canvas on startup - add version 1.21.9
This commit is contained in:
parent
4193ebcaf4
commit
5eedff5bab
58 changed files with 3819 additions and 4765 deletions
|
|
@ -10,6 +10,7 @@ interface Props {
|
|||
children: ReactNode;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react-refresh/only-export-components
|
||||
export const LoadingContext = createContext<Context>({} as Context);
|
||||
|
||||
export const LoadingProvider = ({ children }: Props) => {
|
||||
|
|
@ -18,10 +19,10 @@ export const LoadingProvider = ({ children }: Props) => {
|
|||
return (
|
||||
<LoadingContext.Provider value={{ loading, setLoading }}>
|
||||
{loading && (
|
||||
<div className="absolute w-full h-full cursor-wait flex justify-center items-center">
|
||||
<div className="absolute size-full cursor-wait flex justify-center items-center">
|
||||
{/* Keep loading indicator outside of div with backdrop-filter due to Chrome */}
|
||||
<LoadingIndicator fill="white" className="w-16 h-16 z-[10000]" />
|
||||
<div className="absolute w-full h-full z-[9999] backdrop-brightness-50 flex justify-center items-center gap-4"></div>
|
||||
<LoadingIndicator fill="white" className="w-16 h-16 z-10000" />
|
||||
<div className="absolute size-full z-9999 backdrop-brightness-50 flex justify-center items-center gap-4"></div>
|
||||
</div>
|
||||
)}
|
||||
{children}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue