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: add icon_padding setting #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nielsrowinbik
Copy link

@nielsrowinbik nielsrowinbik commented Feb 14, 2024

I wanted to reduce the space between the left side of the card and the icon, as wel as the space between the icon and the text, so I added a setting and figure I'd open a PR for it.

The setting takes the padding that should be kept around the icon in pixels. This is then applied to the absolutely positioned icon's left property, and we adjust the left padding around the content div (which is 72px by default) to be twice the given value plus 24 pixels for the width of the icon itself.

Edit: I just realised I didn't include a new built version, let me know if you want me to do that and I'll update the PR.

@mrgrlscz
Copy link

+1

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.

2 participants