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
@@ -31,6 +31,7 @@ import RouterLoading from "@/components/routerLoading";
|
||||
import Search from "@/components/search";
|
||||
import Updater from "@/components/updater";
|
||||
import WindowChrome from "@/components/windowControls/windowChrome";
|
||||
import WindowResizeHandles from "@/components/windowControls/resizeHandles";
|
||||
|
||||
type ApiContext = {
|
||||
api: Api | undefined;
|
||||
@@ -58,6 +59,7 @@ export const Route = createRootRouteWithContext<ApiContext>()({
|
||||
<RemoteControlDialog />
|
||||
<AppBar />
|
||||
<WindowChrome />
|
||||
<WindowResizeHandles />
|
||||
<AudioPlayer />
|
||||
<PlaybackSync />
|
||||
<OverlayScrollbar />
|
||||
|
||||
@@ -64,18 +64,15 @@ function Library() {
|
||||
const currentLib = useSuspenseQuery(
|
||||
getLibraryQueryOptions(api, user?.Id, id),
|
||||
);
|
||||
const _initLibrary = useLibraryStateStore((s) => s.initLibrary);
|
||||
const updateLibrary = useLibraryStateStore((s) => s.updateLibrary);
|
||||
const { currentViewType: storeViewType, libraryName: storeLibraryName } =
|
||||
useLibraryStateStore(
|
||||
useShallow((s) => {
|
||||
const sl = s.libraries[id || ""];
|
||||
return {
|
||||
currentViewType: sl?.currentViewType,
|
||||
libraryName: sl?.libraryName,
|
||||
} as const;
|
||||
}),
|
||||
);
|
||||
const { libraryName: storeLibraryName } = useLibraryStateStore(
|
||||
useShallow((s) => {
|
||||
const sl = s.libraries[id || ""];
|
||||
return {
|
||||
libraryName: sl?.libraryName,
|
||||
} as const;
|
||||
}),
|
||||
);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!id || !currentLib.data) return;
|
||||
|
||||
@@ -381,8 +381,6 @@ function SearchResultsList({ categories, query, api, user }: any) {
|
||||
|
||||
// Let's use a timeout or assume if no results update to true after X time.
|
||||
|
||||
const _hasAnyResults = Object.values(resultsStatus).some((v) => v);
|
||||
|
||||
return (
|
||||
<Box sx={{ display: "flex", flexDirection: "column", gap: "1em", pb: 4 }}>
|
||||
{categories.map((cat: any) => (
|
||||
|
||||
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect } from "react";
|
||||
import { useBackdropStore } from "@/utils/store/backdrop";
|
||||
|
||||
import "./settings.scss";
|
||||
import { Divider, IconButton, List, Typography } from "@mui/material";
|
||||
import { IconButton, List, Typography } from "@mui/material";
|
||||
import { useShallow } from "zustand/shallow";
|
||||
import BackButton from "@/components/buttons/backButton";
|
||||
import ListItemLink from "@/components/listItemLink";
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import {
|
||||
alpha,
|
||||
Button,
|
||||
Card,
|
||||
CardActions,
|
||||
CardContent,
|
||||
Chip,
|
||||
Grid,
|
||||
IconButton,
|
||||
Typography,
|
||||
useTheme,
|
||||
} from "@mui/material";
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
@@ -30,7 +27,6 @@ export const Route = createFileRoute("/_api/settings/changeServer/")({
|
||||
});
|
||||
|
||||
function ChangeServerRoute() {
|
||||
const _theme = useTheme();
|
||||
const queryClient = useQueryClient();
|
||||
const createApi = useApiInContext((s) => s.createApi);
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import LoadingButton from "@mui/lab/LoadingButton";
|
||||
import { yellow } from "@mui/material/colors";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
|
||||
Reference in new issue
Block a user