Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38276

Increase size of text area for pipeline script code

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: workflow-cps-plugin
    • Labels:
    • Environment:
      Jenkins 2.7.2
      Pipeline plugin 2.11
      Window 7 x64 SP1
    • Similar Issues:

      Description

      The text area for pipeline script code is too small, and neither Chrome or Firefox allow for custom resizing; text area size is likely hard coded in Jenkins.

      This issue becomes critical on 13" laptop screens even if they are retina as the edit window becomes almost impossible to use due to both lack of horizontal and vertical space.

        Attachments

          Issue Links

            Activity

            Hide
            vctls Victor Toulouse added a comment -

            No, you need a browser extension like greasemonkey or tampermonkey.
            There may be a way of overriding the layout through a plugin or something, but I'm new to Jenkins so I don't know.

            Show
            vctls Victor Toulouse added a comment - No, you need a browser extension like greasemonkey or tampermonkey. There may be a way of overriding the layout through a plugin or something, but I'm new to Jenkins so I don't know.
            Hide
            pauloneves Paulo Eduardo Neves added a comment -

            If you click F12, go to the Console tab and paste the commands below, it will improve a little:

             

            {{ document.querySelector('.container').style.width = '100%';}}
            {{ document.querySelector('.container').style.padding = '0';}}
            {{ document.querySelector('.col-md-offset-2').style.width = '100%';}}
            document.querySelector('.col-md-offset-2').style.margin = '0';

            Show
            pauloneves Paulo Eduardo Neves added a comment - If you click F12, go to the Console tab and paste the commands below, it will improve a little:   {{ document.querySelector('.container').style.width = '100%';}} {{ document.querySelector('.container').style.padding = '0';}} {{ document.querySelector('.col-md-offset-2').style.width = '100%';}} document.querySelector('.col-md-offset-2').style.margin = '0';
            Hide
            jglick Jesse Glick added a comment -

            A pull request (tested against major browsers) would be very welcome.

            Show
            jglick Jesse Glick added a comment - A pull request (tested against major browsers) would be very welcome.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            https://github.com/jenkinsci/jenkins/pull/2837 improves the situation a bit, but I rather prefer the proposal from Victor Toulouse . It would be nice to gave a pull request

            Show
            oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/jenkins/pull/2837  improves the situation a bit, but I rather prefer the proposal from Victor Toulouse . It would be nice to gave a pull request
            Hide
            a2intl Andrew Allen added a comment -

            Made some enhancements to Victor Toulouse's solution/hack (thanks!) that allows resizing by restyling a parent container with resize:both and calling aceEditor.resize() at the proper times. Like his solution, you'll need Tampermonkey installed to run this UserScript, and since it uses ResizeObserver, it only works with modern Chrome versions. https://gist.github.com/a2intl/293a76ae3323ec21d7cdceb6f7cd63af 

            Show
            a2intl Andrew Allen added a comment - Made some enhancements to Victor Toulouse 's solution/hack (thanks!) that allows resizing by restyling a parent container with resize:both and calling aceEditor.resize() at the proper times. Like his solution, you'll need Tampermonkey installed to run this UserScript, and since it uses ResizeObserver , it only works with modern Chrome versions. https://gist.github.com/a2intl/293a76ae3323ec21d7cdceb6f7cd63af  

              People

              • Assignee:
                Unassigned
                Reporter:
                raffinyc Raffi B
              • Votes:
                23 Vote for this issue
                Watchers:
                27 Start watching this issue

                Dates

                • Created:
                  Updated: