-
Notifications
You must be signed in to change notification settings - Fork 30
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
Support for relative width #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think if we go one step further and accept any valid css descriptor ? (em, rem, %, vw, vh, pixel)
If you don't have time it can be done in a follow-up PR.
Actually, I have little to no knowledge of HTML and CSS. I just searched up how to do this specifically and mokey-patched the |
This would be great to land together with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AnonymouX47 sorry for the long wait, all my OSS time was eaten up by another project. I would like to move forward with your PR, could you rebase it with the current main so I can merge it in the next release ?
- Change: The `width` option can now accept an integer percentage as its value. - Change: When `width` is relative, `height` is ignored and a warning is logged.
634ce98
to
f3163f9
Compare
- Fix: Correct the option usage example. - Change: Update the descriptions of `height` and `width` options. - Change: Use relative width in the option usage example.
f3163f9
to
a6a641f
Compare
All done, I believe. |
width
option can now accept an integer percentage as its value.width
is relative,height
is ignored and a warning is logged.height
andwidth
options and uses relative width in the existing example.