From c04ea8993e6e8aa52277783f15a7825b560cbd91 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 11 Mar 2025 14:42:27 +0300 Subject: [PATCH] M: Small layout fixes --- .../features/library/pages/CreateItemPage/FormCreateItem.tsx | 2 +- .../src/features/library/pages/LibraryPage/LibraryPage.tsx | 2 +- .../features/library/pages/LibraryPage/TableLibraryItems.tsx | 2 +- .../src/features/library/pages/LibraryPage/ToolbarSearch.tsx | 5 +++-- .../features/library/pages/LibraryPage/ViewSideLocation.tsx | 3 +-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx b/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx index 7d878caa..72208feb 100644 --- a/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx +++ b/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx @@ -102,7 +102,7 @@ export function FormCreateItem() { return (
void handleSubmit(onSubmit)(event)} onChange={resetErrors} > diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx index 8990fc39..c71842bf 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx @@ -53,7 +53,7 @@ export function LibraryPage() { return ( <> - +
diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx index 21981284..d5a0a8e8 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx @@ -26,11 +26,12 @@ import { LocationHead } from '../../models/library'; import { useHasCustomFilter, useLibrarySearchStore } from '../../stores/librarySearch'; interface ToolbarSearchProps { + className?: string; total: number; filtered: number; } -export function ToolbarSearch({ total, filtered }: ToolbarSearchProps) { +export function ToolbarSearch({ className, total, filtered }: ToolbarSearchProps) { const headMenu = useDropdown(); const userMenu = useDropdown(); @@ -75,7 +76,7 @@ export function ToolbarSearch({ total, filtered }: ToolbarSearchProps) { } return ( -
+
{filtered} из {total}
diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx index 1e06ff25..7127c721 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx @@ -1,5 +1,4 @@ import { toast } from 'react-toastify'; -import clsx from 'clsx'; import { useAuthSuspense } from '@/features/auth'; import { HelpTopic } from '@/features/help'; @@ -63,7 +62,7 @@ export function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocati return (