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,6 +1212,7 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
{isDesktop && (
|
||||||
<TooltipIconButton
|
<TooltipIconButton
|
||||||
tooltip="Capture screen"
|
tooltip="Capture screen"
|
||||||
type="button"
|
type="button"
|
||||||
|
|
@ -1223,6 +1224,7 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
||||||
>
|
>
|
||||||
<Camera className="size-4" />
|
<Camera className="size-4" />
|
||||||
</TooltipIconButton>
|
</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