mirror of https://github.com/astral-sh/ruff
[red-knot] Fix loading color in dark mode (#17237)
## Summary The loading indicator on dark mode isn't "visible" because it's black on black. Use white as text color instead.
This commit is contained in:
parent
ac5d220d75
commit
51bdb87fd8
|
|
@ -109,7 +109,9 @@ function Run({ files, theme }: { files: ReadonlyFiles; theme: Theme }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Suspense fallback={<div className="text-center">Loading</div>}>
|
<Suspense
|
||||||
|
fallback={<div className="text-center dark:text-white">Loading</div>}
|
||||||
|
>
|
||||||
<RunWithPyiodide
|
<RunWithPyiodide
|
||||||
theme={theme}
|
theme={theme}
|
||||||
files={files}
|
files={files}
|
||||||
|
|
|
||||||
|
|
@ -480,7 +480,11 @@ function updateFile(
|
||||||
}
|
}
|
||||||
|
|
||||||
function Loading() {
|
function Loading() {
|
||||||
return <div className="align-middle text-center my-2">Loading...</div>;
|
return (
|
||||||
|
<div className="align-middle text-current text-center my-2 dark:text-white">
|
||||||
|
Loading...
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function restoreWorkspace(
|
function restoreWorkspace(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue