Skip to content

Commit

Permalink
Fixed delete button size in asset details & consent record pages (#8996)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Nov 5, 2024
1 parent a65d7ec commit 6b57124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/components/Assets/AssetManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ const AssetManage = (props: AssetManageProps) => {
data-testid="asset-update-button"
authorizeFor={NonReadOnlyUsers}
>
<CareIcon icon="l-pen" className="mr-1 h-4" />
<CareIcon icon="l-pen" className="text-lg" />
{t("update")}
</ButtonV2>
{asset?.asset_class &&
Expand All @@ -449,7 +449,7 @@ const AssetManage = (props: AssetManageProps) => {
id="configure-asset"
data-testid="asset-configure-button"
>
<CareIcon icon="l-setting" className="h-4" />
<CareIcon icon="l-setting" className="text-lg" />
{t("configure")}
</ButtonV2>
)}
Expand All @@ -459,10 +459,9 @@ const AssetManage = (props: AssetManageProps) => {
onClick={() => setShowDeleteDialog(true)}
variant="danger"
data-testid="asset-delete-button"
className="inline-flex"
>
<CareIcon icon="l-trash" className="h-4" />
<span className="md:hidden">{t("delete")}</span>
<CareIcon icon="l-trash" className="text-lg" />
<span>{t("delete")}</span>
</ButtonV2>
)}
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export default function PatientConsentRecords(props: {
onClick={fileUpload.clearFiles}
disabled={fileUpload.uploading}
>
<CareIcon icon="l-trash-alt" className="" />
<CareIcon icon="l-trash" className="text-lg" />
<span>{t("delete")}</span>
</ButtonV2>
</>
) : (
Expand Down

0 comments on commit 6b57124

Please sign in to comment.