Skip to content

Commit

Permalink
Fix Optional height and/or width #62
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiomaffeis committed Jul 20, 2023
1 parent 3144ec3 commit 45e4c04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion PictureInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ export default {
<style scoped>
.picture-input {
width: 100%;
flex-grow: 1;
margin: 0 auto;
text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Try it on CodeSandbox: https://codesandbox.io/s/github/alessiomaffeis/vue-pictur

## Props

- **width, height**: (pixels, optional) the maximum width and height of the preview container. The picture will be resized and centered to cover this area. If not specified, the preview container will expand to full width, 1:1 square ratio.
- **width, height**: (pixels, optional) the maximum width and height of the preview container. The picture will be resized and centered to cover this area. If width is not specified, the preview container will expand to full width. If height is not specified, it will be set equal to width.
- **crop**: (boolean, optional) set *:crop="false"* if you wish to disable cropping. The image will be resized and centered in order to be fully contained in the preview container. Default value: true.
- **margin**: (pixels, optional) the margin around the preview container. Default value: 0.
- **radius**: (percentage, optional) The border-radius value for the container. Set *radius="50"* to get a circular container. Default value: 0.
Expand Down

0 comments on commit 45e4c04

Please sign in to comment.