Skip to content

Commit d4afe43

Browse files
authored
fix: drodown menu on user card is cropped (#444)
**Describe the pull request** This pull request addresses an issue where the dropdown menu on the user card is being cropped, hindering its usability. The fix involves adjusting the CSS rules and layout properties of the dropdown menu to ensure that it is fully visible and accessible. **Checklist** - [x] I have made the modifications or added tests related to my PR - [x] I have run the tests and linters locally and they pass - [x] I have added/updated the documentation for my RP
1 parent bb5f606 commit d4afe43

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

web/ui/src/components/UserCard/UserCard.tsx

+13-11
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,23 @@ export const UserCard: React.FC<PropsWithClassName<UserCardProps>> = ({
2525
className={classNames(
2626
'relative group',
2727
'text-center grow-[1] min-w-[200px] max-w-[200px] transition-all',
28-
'rounded-lg border-2 border-transparent hover:cursor-pointer overflow-hidden',
28+
'rounded-lg border-2 border-transparent hover:cursor-pointer',
2929
className
3030
)}
3131
>
3232
{hasCover && (
33-
<div
34-
className={classNames(
35-
'absolute top-0 left-0 right-0 bg-cover bg-center w-full h-full blur-sm scale-110',
36-
'[-webkit-mask-image:linear-gradient(rgb(0,0,0)0%,rgba(0,0,0,0)58%)]',
37-
'dark:[-webkit-mask-image:linear-gradient(rgb(0,0,0)42%,rgba(0,0,0,0.2)58%)]'
38-
)}
39-
style={{
40-
backgroundImage: `url(${user.coverURL})`,
41-
}}
42-
/>
33+
<div className="absolute top-0 left-0 right-0 overflow-hidden w-full h-full rounded-lg">
34+
<div
35+
className={classNames(
36+
'bg-cover bg-center w-full h-full blur-sm scale-110',
37+
'[-webkit-mask-image:linear-gradient(rgb(0,0,0)0%,rgba(0,0,0,0)58%)]',
38+
'dark:[-webkit-mask-image:linear-gradient(rgb(0,0,0)42%,rgba(0,0,0,0.2)58%)]'
39+
)}
40+
style={{
41+
backgroundImage: `url(${user.coverURL})`,
42+
}}
43+
/>
44+
</div>
4345
)}
4446
<div className="relative w-full h-full flex flex-col items-center justify-center p-4 z-10">
4547
<Avatar

0 commit comments

Comments
 (0)