mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:26 +00:00
[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
2 changed files with 8 additions and 2 deletions
|
@ -109,7 +109,9 @@ function Run({ files, theme }: { files: ReadonlyFiles; theme: Theme }) {
|
|||
}
|
||||
|
||||
return (
|
||||
<Suspense fallback={<div className="text-center">Loading</div>}>
|
||||
<Suspense
|
||||
fallback={<div className="text-center dark:text-white">Loading</div>}
|
||||
>
|
||||
<RunWithPyiodide
|
||||
theme={theme}
|
||||
files={files}
|
||||
|
|
|
@ -480,7 +480,11 @@ function updateFile(
|
|||
}
|
||||
|
||||
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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue