wijohnst / ts_reddit_clone

TRC - Sample Reddit UI and Backend
1 stars 0 forks source link

fix: `Icon` Sizing bug #45

Open wijohnst opened 1 year ago

wijohnst commented 1 year ago

TL/DR

Currently <Icon /> components are not constrained by the size of their parent component. For this fix update the component to scale to the size of it's bounding box.

Inversion of Control

<Icons /> do not need to know their exact dimensions - that is the responsibility of their parent.

wijohnst commented 1 year ago

This may not be a bug.