OH3 UI Help with getting custom widget to scale like OH widgets

Does this code help?

Dimmer widget oh3 and UI design - Add-ons / UIs - openHAB Community