chore: window resize handles, UI cleanup and type fixes
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Adds edge resize handles for frameless Windows/Linux windows, reserves space for the custom titlebar, and fixes assorted unused imports, error-boundary typing and image decoding hints.
This commit is contained in:
1 parent
6675a55957
commit
ae5a2133fa
22 files changed
+161
-35
No files matched your search
@@ -54,13 +54,14 @@ const CentralContext = createContext<StoreApi<CentralStore>>(null!);
|
||||
export const CentralProvider = ({ children }: { children: ReactNode }) => {
|
||||
const [store] = useState(() =>
|
||||
createStore<CentralStore>()((set) => ({
|
||||
defaultServerOnDisk: async () => await getDefaultServer(),
|
||||
defaultServerOnDisk: async () => (await getDefaultServer()) ?? null,
|
||||
defaultServerInfoOnDisk: async () => {
|
||||
const a = await getDefaultServer();
|
||||
return await getServer(a);
|
||||
if (!a) return undefined;
|
||||
return (await getServer(a)) ?? undefined;
|
||||
},
|
||||
allServersOnDisk: async () => await getAllServers(),
|
||||
userOnDisk: async () => await getUser(),
|
||||
userOnDisk: async () => (await getUser()) ?? null,
|
||||
clientVersion: version,
|
||||
currentUser: null,
|
||||
fetchCurrentUser: async (api) => {
|
||||
|
||||
Reference in new issue
Block a user