mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
fix(thread): conditionally render screen capture button for desktop users
This commit is contained in:
parent
8ea042e88c
commit
0c2beb7ce8
1 changed files with 13 additions and 11 deletions
|
|
@ -1212,17 +1212,19 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<TooltipIconButton
|
{isDesktop && (
|
||||||
tooltip="Capture screen"
|
<TooltipIconButton
|
||||||
type="button"
|
tooltip="Capture screen"
|
||||||
variant="ghost"
|
type="button"
|
||||||
size="icon"
|
variant="ghost"
|
||||||
className="size-8 rounded-full"
|
size="icon"
|
||||||
aria-label="Capture screen"
|
className="size-8 rounded-full"
|
||||||
onClick={() => void handleScreenCapture()}
|
aria-label="Capture screen"
|
||||||
>
|
onClick={() => void handleScreenCapture()}
|
||||||
<Camera className="size-4" />
|
>
|
||||||
</TooltipIconButton>
|
<Camera className="size-4" />
|
||||||
|
</TooltipIconButton>
|
||||||
|
)}
|
||||||
<AuiIf condition={({ thread }) => !thread.isRunning}>
|
<AuiIf condition={({ thread }) => !thread.isRunning}>
|
||||||
<ComposerPrimitive.Send asChild disabled={isSendDisabled}>
|
<ComposerPrimitive.Send asChild disabled={isSendDisabled}>
|
||||||
<TooltipIconButton
|
<TooltipIconButton
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue