be-spaceless
v0.0.4
Published
Sizes the inner content to fit into the outer container, preserving aspect ratio.
Downloads
2
Maintainers
Readme
be-spaceless
Sizes the inner content to fit into the outer container, preserving aspect ratio.
be-spaceless might be unnecessary once container queries are a thing.
For now:
<div style="display:grid;height:300px;width:200px;overflow:hidden">
<xtal-link-preview href="https://onsen.io/" be-spaceless></xtal-link-preview>
</div>