FEMessage / FEMessage/v-img

feat: fit

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
47
Forks
8
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
when you cannot both set width or height, you would need this CSS ability: object-fit, otherwise img would be distort in Safari

**Describe the solution you'd like**
like element: https://github.com/FEMessage/element/blob/dev/packages/image/src/main.vue#L16

**Describe alternatives you've considered**
just using custom css if don't care about IE11 compatibility

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.