feat: cross-platform titlebar, video transfers and client cleanup
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 frameless-window controls for Windows/Linux (native traffic lights on macOS), keeps transfers at the current position for video, lets the video player use the same sync/device controls as the media bar, and removes dead code plus assorted UI/perf issues.
This commit is contained in:
1 parent
4bdd0139bf
commit
6675a55957
26 files changed
+561
-316
No files matched your search
@@ -3,8 +3,14 @@ import Typography from "@mui/material/Typography";
|
||||
import { red } from "@mui/material/colors";
|
||||
import React from "react";
|
||||
|
||||
export const ErrorNotice = ({ error }: { error?: Error }) => {
|
||||
console.error(error);
|
||||
export const ErrorNotice = ({ error }: { error?: unknown }) => {
|
||||
const normalizedError =
|
||||
error instanceof Error
|
||||
? error
|
||||
: error
|
||||
? new Error(String(error))
|
||||
: undefined;
|
||||
console.error(normalizedError ?? error);
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
@@ -57,8 +63,9 @@ export const ErrorNotice = ({ error }: { error?: Error }) => {
|
||||
fontFamily: "JetBrains Mono Variable",
|
||||
}}
|
||||
>
|
||||
{error
|
||||
? error.stack || `${error.name}: ${error.message}`
|
||||
{normalizedError
|
||||
? normalizedError.stack ||
|
||||
`${normalizedError.name}: ${normalizedError.message}`
|
||||
: "Unknown error"}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
Reference in new issue
Block a user