I should have mentioned that the link I posted was for a much earlier version of MainUI. You no longer need to use f7-row
and the tag
property for everything, you can just use the tags directly for the component:
- component: svg
config:
class: ='ink'
xlmns: http://www.w3.org/2000/svg
width: 90
height: 200
style:
grid-area: 1/1
That helps make it a lot more readable.
From a quick glance at what you’ve posted it looks like you could easily use a repeater and just have the code for the svg once which would trim this down quite a bit.
The svgs would be responsive if you used the viewBox
property with them and didn’t give them static height
and width
values. Here you can see an example of a responsive svg using viewBox
: