Skip to content

Commit

Permalink
fix(experimental): Avatar colored icon object-fit (#10333)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy authored Feb 10, 2025
1 parent ec69004 commit ee904c9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ export class TuiAvatarComponent {
@HostListener(TUI_ICON_COLORED, ['$event.target'])
onColoredIcon(target: HTMLElement): void {
this.renderer.setStyle(target, 'padding', '20%');
this.renderer.setStyle(target, 'object-fit', 'contain');
}
}

0 comments on commit ee904c9

Please sign in to comment.