move span inside of content to fix crash (#10790)

This commit is contained in:
Josh Hawkins 2024-04-02 08:07:38 -05:00 committed by GitHub
parent 4d8d3cd22e
commit d7a87fff60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,10 +220,10 @@ export default function GeneralSettings({ className }: GeneralSettings) {
<span>Dark Mode</span> <span>Dark Mode</span>
</SubItemTrigger> </SubItemTrigger>
<Portal> <Portal>
<span tabIndex={0} className="sr-only" />
<SubItemContent <SubItemContent
className={isDesktop ? "" : "w-[92%] rounded-2xl"} className={isDesktop ? "" : "w-[92%] rounded-2xl"}
> >
<span tabIndex={0} className="sr-only" />
<MenuItem <MenuItem
className={ className={
isDesktop isDesktop