Issues

Issue #7669 open

Code window width doesn't re-size with browser (BB-8837)

sethmoore
created an issue

The width of the code window does not re-size with the browser width. If the file being reviewed contains lines of code that exceed the width of the code window and the file is longer vertically than the page, this requires you to scroll down to the bottom of the file and lose your place just to scroll over horizontally.

This makes it very hard to review code that runs off the screen horizontally.

If the code window can't be re-sized, perhaps a word-wrap feature could be added.

Comments (6)

  1. Jon Mooring staff
    • changed status to open

    Hi Seth,

    Thanks for reporting this, it's definitely an interesting usability concern. I think most of us on the team have horizontal scrolling built in to our mice and trackpads so we never really noticed it.

    I've created a ticket in our internal tracker and we'll update this public issue when we have more information.

    Thanks,
    Jon

  2. John Hsu

    Github has a shortcut by visiting following url (it almost works well):

    javascript:document.getElementById("js-repo-pjax-container").style.width="1500px";void(0);
    

    Maybe there's a similar trick in bitbucket?

  3. sethmoore reporter

    Here's the bookmarklet work around I'm using (thanks John Hsu ):

    javascript:document.getElementById("repo-content").parentNode.style.width="90%";void(0);

    It's still irritating that this issue won't be fixed, especially seeing how easy it is to fix it.

  4. Log in to comment