BS4 Input lefttext width

Is it possible to set the width of the BS4input lefttext? Be nice to line them up when using multiple inputs.

image

I found this on StackOverflow - have not tried it myself:

Found it. This does the trick.

Input1.children[0].children[1].children[1].children[0].children[0].style.width = "25px"

but also needed to change the first child for inputs in another project (don’t know why)

AdmitPatientInput1.children[0].children[0].children[1].children[0].children[0].style.width = "25px"

image