The Job Configuration and System Configuration windows are just intolerable. If I go in and manually set the max-width of the div.CodeMirror-lines>div>div to, say, 40em, the window behaves better. See attached screenshots. Even if you can't fix this quickly, a workaround using the "simple theme" plugin would be most appreciated!

          [JENKINS-16327] Pages with CodeMirror editors are impossibly wide

          Daniel Beck added a comment -

          I have no idea what I was thinking when I resolved this. My apologies.

          My comment just means there's a simple workaround, not that this isn't a bug.

          Daniel Beck added a comment - I have no idea what I was thinking when I resolved this. My apologies. My comment just means there's a simple workaround, not that this isn't a bug.

          Daniel Beck added a comment -

          However, it's not as bad due to presence of workaround.

          Daniel Beck added a comment - However, it's not as bad due to presence of workaround.

          Hello,
          I have the same problem with Jenkins 2.1.
          On Chrome and Firefox (not tested elsewhere), in job config page, the command in the "execute shell" textarea is always displayed on a single row (without any word wrap) and the page gets wider and wider if you have very long commands. This does not happen in the "job description" textarea, so I think is due to CodeMirror (css or code).
          Moreover, the suggested workaround (trying to disable CodeMirror) does not work: the checkbox "disable syntax highlighting" do nothing. I checked it and also restarted Jenkins, and nothing changed.

          Thanks, Donato

          Donato Tagliabue added a comment - Hello, I have the same problem with Jenkins 2.1. On Chrome and Firefox (not tested elsewhere), in job config page, the command in the "execute shell" textarea is always displayed on a single row (without any word wrap) and the page gets wider and wider if you have very long commands. This does not happen in the "job description" textarea, so I think is due to CodeMirror (css or code). Moreover, the suggested workaround (trying to disable CodeMirror) does not work: the checkbox "disable syntax highlighting" do nothing. I checked it and also restarted Jenkins, and nothing changed. Thanks, Donato

          Ollie ! added a comment - - edited

          Adding "max-width: 550px" to the .CodeMirror-scroll class inside codemirror.css will enable the desired and expected behavior. 550px is just an approximate - if someone has a better value, feel free to share it.

          EDIT: changed 750px to 550px after some experimentation.

          Ollie ! added a comment - - edited Adding "max-width: 550px" to the .CodeMirror-scroll class inside codemirror.css will enable the desired and expected behavior. 550px is just an approximate - if someone has a better value, feel free to share it. EDIT: changed 750px to 550px after some experimentation.

          Daniel Beck added a comment -

          kwaping Could you create a PR for that so we can review and, if acceptable, integrate in Jenkins?

          Daniel Beck added a comment - kwaping Could you create a PR for that so we can review and, if acceptable, integrate in Jenkins?

          Ollie ! added a comment -

          danielbeck I accept your challenge.

          Ollie ! added a comment - danielbeck I accept your challenge.

          Daniel Beck added a comment -

          kwaping You didn't create that PR yet, did you?

          Daniel Beck added a comment - kwaping You didn't create that PR yet, did you?

          Ollie ! added a comment -

          No, a combination of work commitments and my solution not being very good have been standing in my way.

          Ollie ! added a comment - No, a combination of work commitments and my solution not being very good have been standing in my way.

          Daniel Beck added a comment -

          kwaping I asked someone else to take care of this, PR is at https://github.com/jenkinsci/jenkins/pull/2575 – if you have the time, test it to make sure it works as expected. There's a PR build you can download and try.

          Daniel Beck added a comment - kwaping I asked someone else to take care of this, PR is at https://github.com/jenkinsci/jenkins/pull/2575 – if you have the time, test it to make sure it works as expected. There's a PR build you can download and try.

          Ollie ! added a comment -

          As noted in the PR, this is a very good solution that works well in my testing.

          Ollie ! added a comment - As noted in the PR, this is a very good solution that works well in my testing.

            kwaping Ollie !
            dabrahams Dave Abrahams
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: