fix: default icon size to 16px in createIcon wrapper and fix download button alignment (#27924)

* fix: resolve insights page UI regressions for plus button size and download alignment

Co-Authored-By: eunjae@cal.com <hey@eunjae.dev>

* fix: default icon size to 16px in createIcon wrapper

Co-Authored-By: eunjae@cal.com <hey@eunjae.dev>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Eunjae LeeandDevin AI authored and GitHub committed 2026-02-13 10:00:16 +00:00
1 parent 6386b2ec95
commit 1bb4b206c6
2 files changed
+2 -2

No files matched your search

@@ -99,7 +99,7 @@ const Download = () => {
EndIcon="file-down"
color="secondary"
loading={isDownloading}
className="h-full self-end sm:self-baseline">
className="h-full">
{t("download")}
</Button>
</DropdownMenuTrigger>
+1 -1
View File
@@ -163,7 +163,7 @@ export interface IconProps {
}
function createIcon(Icon: LucideIcon, testId: string) {
return function WrappedIcon({ size, className, onClick }: IconProps) {
return function WrappedIcon({ size = 16, className, onClick }: IconProps) {
return <Icon size={size} className={className} onClick={onClick} data-testid={testId} />;
};
}