This is kinda not super great - maybe using some sort of relative unit for the height could work? 