From 32ba49822ccc3d4c3d0a6928c7eed35c1da91048 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 5 Aug 2025 23:29:36 +0200 Subject: [PATCH] feat: Enhance styling in SelectedPrincipalsList and SearchPicker components for improved UI consistency --- .../components/Sharing/GenericGrantAccessDialog.tsx | 2 +- .../components/Sharing/PeoplePicker/SearchPicker.tsx | 10 +++++----- .../Sharing/PeoplePicker/SelectedPrincipalsList.tsx | 5 ++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/client/src/components/Sharing/GenericGrantAccessDialog.tsx b/client/src/components/Sharing/GenericGrantAccessDialog.tsx index 4a4960fac0..cea0b3fe4a 100644 --- a/client/src/components/Sharing/GenericGrantAccessDialog.tsx +++ b/client/src/components/Sharing/GenericGrantAccessDialog.tsx @@ -276,7 +276,7 @@ export default function GenericGrantAccessDialog({ {/* Search Bar with Default Permission Setting */} {hasPeoplePickerAccess && (
-

+

{localize('com_ui_user_group_permissions')} ( {allShares.length} )

diff --git a/client/src/components/Sharing/PeoplePicker/SearchPicker.tsx b/client/src/components/Sharing/PeoplePicker/SearchPicker.tsx index 6bbc5613b3..f068f8da94 100644 --- a/client/src/components/Sharing/PeoplePicker/SearchPicker.tsx +++ b/client/src/components/Sharing/PeoplePicker/SearchPicker.tsx @@ -72,10 +72,10 @@ export function SearchPicker({ return ( - + {label} -
+ <>
({ className="h-10 w-full rounded-lg bg-transparent pl-10 text-sm leading-tight text-text-primary placeholder-text-secondary placeholder-opacity-100 focus:outline-none focus-visible:outline-none group-focus-within:placeholder-text-primary group-hover:placeholder-text-primary" />
-
+ ({ autoFocusOnShow={false} modal={false} className={cn( - 'animate-popover z-[9999] min-w-64 overflow-hidden rounded-xl border border-border-light bg-surface-secondary shadow-lg', + 'animate-popover z-[9999] min-w-64 overflow-hidden rounded-2xl border border-border-light bg-surface-secondary shadow-lg', '[pointer-events:auto]', // Override body's pointer-events:none when in modal )} > diff --git a/client/src/components/Sharing/PeoplePicker/SelectedPrincipalsList.tsx b/client/src/components/Sharing/PeoplePicker/SelectedPrincipalsList.tsx index 495b9132c8..cf93255dcf 100644 --- a/client/src/components/Sharing/PeoplePicker/SelectedPrincipalsList.tsx +++ b/client/src/components/Sharing/PeoplePicker/SelectedPrincipalsList.tsx @@ -53,7 +53,7 @@ export default function SelectedPrincipalsList({ return (
@@ -85,9 +85,8 @@ export default function SelectedPrincipalsList({ )}