UI: "Templates > Date format" setting goes out of bounds

If you just write a longer string in the input of that setting, the moment format reference will eventually completely push the input field out of bounds, I know its not intended input, but any user could just spam a bunch of letters and see this.

Limit the input length dynamically?

Also unrelated but the textarea input could use some min height and max width

Moved to help for not following the bug report template