feat: add select-none class to InboxSidebar and ChatShareButton for improved text selection behavior

This commit is contained in:
Anish Sarkar 2026-02-22 04:14:07 +05:30
parent 87e4859a39
commit fe2b739fc4
2 changed files with 2 additions and 2 deletions

View file

@ -727,7 +727,7 @@ export function InboxSidebar({
</Tooltip>
<DropdownMenuContent
align="end"
className={cn("z-80", activeTab === "status" ? "w-52" : "w-44")}
className={cn("z-80 select-none", activeTab === "status" ? "w-52" : "w-44")}
>
<DropdownMenuLabel className="text-xs text-muted-foreground/80 font-normal">
{t("filter") || "Filter"}

View file

@ -181,7 +181,7 @@ export function ChatShareButton({ thread, onVisibilityChange, className }: ChatS
sideOffset={8}
onCloseAutoFocus={(e) => e.preventDefault()}
>
<div className="p-1.5 space-y-1">
<div className="p-1.5 space-y-1 select-none">
{/* Visibility Options */}
{visibilityOptions.map((option) => {
const isSelected = currentVisibility === option.value;