diff --git a/web/src/ui/settings/SettingsView.css b/web/src/ui/settings/SettingsView.css index cc0e7e7..1cda143 100644 --- a/web/src/ui/settings/SettingsView.css +++ b/web/src/ui/settings/SettingsView.css @@ -60,6 +60,15 @@ div.settings-view { position: fixed; inset: 0; z-index: 10; + background-color: var(--background-color); + + > div.loader { + position: absolute; + inset: 0; + display: flex; + justify-content: center; + align-items: center; + } } > div.buttons { diff --git a/web/src/ui/settings/SettingsView.tsx b/web/src/ui/settings/SettingsView.tsx index 657d1c9..131a542 100644 --- a/web/src/ui/settings/SettingsView.tsx +++ b/web/src/ui/settings/SettingsView.tsx @@ -13,7 +13,8 @@ // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -import { lazy, use, useCallback, useRef, useState } from "react" +import { Suspense, lazy, use, useCallback, useRef, useState } from "react" +import { ScaleLoader } from "react-spinners" import Client from "@/api/client.ts" import { RoomStateStore, usePreferences } from "@/api/statestore" import { @@ -242,12 +243,14 @@ const CustomCSSInput = ({ setPref, room }: { setPref: SetPrefFunc, room: RoomSta } {vscodeOpen ?
- +
}> + + :