ProfileDropdown: enforce a max width

This commit is contained in:
Alex Gleason 2023-02-07 12:02:37 -06:00
parent 9ac2764bfa
commit 0631657278
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ const ProfileDropdown: React.FC<IProfileDropdown> = ({ account, children }) => {
{visible && ( {visible && (
<div <div
ref={refs.setFloating} ref={refs.setFloating}
className='z-[1003] mt-2 rounded-md bg-white shadow-lg focus:outline-none dark:bg-gray-900 dark:ring-2 dark:ring-primary-700' className='z-[1003] mt-2 max-w-xs rounded-md bg-white shadow-lg focus:outline-none dark:bg-gray-900 dark:ring-2 dark:ring-primary-700'
style={{ style={{
position: strategy, position: strategy,
top: y ?? 0, top: y ?? 0,