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

Add image sizing with width and height config fields. #18

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Conversation

luixal
Copy link
Owner

@luixal luixal commented Jan 17, 2025

Adds two new fields width and height that can be used to set the size of the image.

This example:

type: custom:media-source-image-card
image: >-
  https://t4.ftcdn.net/jpg/01/43/23/83/360_F_143238306_lh0ap42wgot36y44WybfQpvsJB5A1CHc.jpg
width: 300px
height: 200px

would render as this:

image

You can use any value that's css valid (100px, 100%, 10rem, 10em, etc.). And you may use card_mod or tweak your theme for it to look pretty :P

Closes #17

@luixal luixal merged commit 6679915 into main Jan 17, 2025
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

Successfully merging this pull request may close these issues.

[FR] Set image size
1 participant