fix(multimonitor): Study browser more menu fixes (#5208)

This commit is contained in:
Joe Boccanfuso 2025-07-18 12:08:18 -04:00 committed by GitHub
parent 779907e526
commit 3d4ec3181d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -41,7 +41,7 @@ const getMenuItemsDefault = ({ commandsManager, items, ...props }: withAppTypes)
</DropdownMenuItem>
);
const MenuItemComponent = menuContent?.content || DefaultMenuItem;
const MenuItemComponent = menuContent ?? DefaultMenuItem;
return (
<DropdownMenuContent

View File

@ -131,7 +131,11 @@ export default class CustomizationService extends PubSubService {
}
});
this.addReferences(this.configuration);
// Only add references for the configuration once.
if (!this.configuration?._hasBeenAdded) {
this.addReferences(this.configuration);
Object.defineProperty(this.configuration, '_hasBeenAdded', { value: true, writable: false });
}
}
public onModeEnter(): void {

View File

@ -56,7 +56,7 @@ const ScrollArea = React.forwardRef<
return (
<ScrollAreaPrimitive.Root
ref={ref}
className={cn('relative h-full overflow-hidden', className)}
className={cn('relative h-full overflow-hidden', className, '[&>div>div]:!block')}
type={props.type}
{...props}
>