feat: note tags button for mobile (#1641)

This commit is contained in:
Aman Harwara
2022-09-26 02:58:55 +05:30
committed by GitHub
parent 4985787c5d
commit fe2ce9f1e8
8 changed files with 273 additions and 93 deletions

View File

@@ -71,17 +71,15 @@ const PositionedPopoverContent = ({
}}
data-popover={id}
>
<div className={className}>
<div className="md:hidden">
<div className="flex items-center justify-end px-3">
<button className="rounded-full border border-border p-1" onClick={togglePopover}>
<Icon type="close" className="h-4 w-4" />
</button>
</div>
<HorizontalSeparator classes="my-2" />
<div className="md:hidden">
<div className="flex items-center justify-end px-3 pt-2">
<button className="rounded-full border border-border p-1" onClick={togglePopover}>
<Icon type="close" className="h-4 w-4" />
</button>
</div>
{children}
<HorizontalSeparator classes="my-2" />
</div>
<div className={className}>{children}</div>
</div>
</Portal>
)