mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55:16 +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,6 +1212,7 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
|||
</div>
|
||||
)}
|
||||
<div className="flex items-center gap-2">
|
||||
{isDesktop && (
|
||||
<TooltipIconButton
|
||||
tooltip="Capture screen"
|
||||
type="button"
|
||||
|
|
@ -1223,6 +1224,7 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
|||
>
|
||||
<Camera className="size-4" />
|
||||
</TooltipIconButton>
|
||||
)}
|
||||
<AuiIf condition={({ thread }) => !thread.isRunning}>
|
||||
<ComposerPrimitive.Send asChild disabled={isSendDisabled}>
|
||||
<TooltipIconButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue