fix: changed add flow button to be square on collapsed screen (#4824)

Fixed button aspect ratio

Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
This commit is contained in:
Lucas Oliveira 2024-11-25 15:15:19 -03:00 committed by GitHub
commit 7961cb278e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,24 +135,23 @@ const HeaderComponent = ({
))}
</div>
</div>
<div className="flex gap-2">
<ShadTooltip content="New Flow" side="bottom">
<Button
variant="default"
onClick={() => setNewProjectModal(true)}
id="new-project-btn"
>
<ForwardedIconComponent
name="Plus"
aria-hidden="true"
className="h-4 w-4"
/>
<span className="hidden whitespace-nowrap font-semibold md:inline">
New Flow
</span>
</Button>
</ShadTooltip>
</div>
<ShadTooltip content="New Flow" side="bottom">
<Button
variant="default"
className="!px-3 md:!px-4 md:!pl-3.5"
onClick={() => setNewProjectModal(true)}
id="new-project-btn"
>
<ForwardedIconComponent
name="Plus"
aria-hidden="true"
className="h-4 w-4"
/>
<span className="hidden whitespace-nowrap font-semibold md:inline">
New Flow
</span>
</Button>
</ShadTooltip>
</div>
</>
)}