Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fit #40

Open
levy9527 opened this issue Jan 4, 2021 · 0 comments
Open

feat: fit #40

levy9527 opened this issue Jan 4, 2021 · 0 comments

Comments

@levy9527
Copy link
Contributor

levy9527 commented Jan 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant