Hello !
Tell me please, is it possible to make the icons, like widgets, decrease in proportion to the scale?
But given the fact that they are all made in the "label" field.
Or will everything have to be redone?
You could give css' font-size
a value in viewport units:
font-size: 1vw
1 Like
Please tell me if there is an alternative solution to this problem?
The above solution only allows using the window's size as a reference to compute the font size, to use the button's size there's no clean alternative without scripting into each button. If you're only troubled with the sizes changing when enabling the editor, giving a fixed width/height to the root widget would fix it.
/* dirty auto-size
doesn't work well with % width
or widgets in horizontal/vertical/grid layouts
*/
font-size: #{parseInt(@{this.width} * 0.1} /* adjust 0.1 */
1 Like