how to make gradient on bar not look squashed? #4724
Unanswered
simply-zaki
asked this question in
Q&A
Replies: 1 comment
-
pls this is a project for a client |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i added a gradient to fill and it looks good but if its height is too small it looks squashed, how do i do something like background-image in css?
![image](https://private-user-images.githubusercontent.com/137894631/371067101-66811a91-7fb8-4a7e-a8e9-41b246f49a1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MDI1NTYsIm5iZiI6MTczOTYwMjI1NiwicGF0aCI6Ii8xMzc4OTQ2MzEvMzcxMDY3MTAxLTY2ODExYTkxLTdmYjgtNGE3ZS1hOGU5LTQxYjI0NmY0OWExYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwNjUwNTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMWE0YzM2MjIxYjVhYTEzMjk0Njk5N2I3MGQ5MWQxZjQzNTkwMWQ1MDBjYzI1MGE2OTBmMWFkMGMzNDJmODMyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.VJEE4YbUsbt4lTpdGOWPcYb0qwkNjBLZoY_JoVeS_gA)
the fill:
fill: { type: 'gradient', gradient: { shade: 'dark', type: 'vertical', shadeIntensity: 1, gradientToColors: ['#c026d3'], stops: [0, 60, 100], colorStops: [ { offset: 0, color: '#7c3aed' }, { offset: 60, color: '#d946ef' }, { offset: 100, color: '#5b21b6' }, ] } }
Beta Was this translation helpful? Give feedback.
All reactions