Bug 886073

Summary: [RFE] Try harder to fit bug's header, description and comments vertically on the screen
Product: [Community] Bugzilla Reporter: Marian Csontos <mcsontos>
Component: User InterfaceAssignee: Matt Tyson 🤬 <mtyson>
Status: CLOSED WONTFIX QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2CC: jfearn, jingwang, mtyson
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-05 06:19:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marian Csontos 2012-12-11 13:06:50 UTC
Description of problem:

Having a BZ with some "unwrappable" lines (example: https://bugzilla.redhat.com/show_bug.cgi?id=801571) all the comments are spread over very wide window, and vertical scrolling is required.

Bug's header does not fit vertical window - IIUC this is due to long "Product" field.

Version-Release number of selected component (if applicable):
4.2.4 (RHBZ as of today)

How reproducible:
100% affects bugs with wide `preformatted` lines

Steps to Reproduce:
1. open a firefox window some 1000-1200px wide
2. open Bug 801571
  
Actual results:
- vertical scrolling is necessary for a lot of comments in the BZ
- vertical scrolling is necessary to see reporter

Expected results:
- comments which are not `<pre>` should not require vertical scrolling
- header should fit the screen if possible

Additional info:

Comment 1 Marian Csontos 2012-12-11 13:07:46 UTC
...and I am using RHEL6.3: firefox-10.0.11-1.el6_3.x86_64

Comment 2 Jeff Fearn 🐞 2012-12-11 23:04:08 UTC
FWIW here is the stylish [1] rule I use to make the BZ layout work for me on a 960px wide layout (half a 1920 screen). Your tastes may differ!

1: https://addons.mozilla.org/en-US/firefox/addon/stylish/

######### START Rule #########
@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("bugzilla.redhat.com") {
.bz_status_MODIFIED {
background-color: yellow !important
}
.bz_status_ASSIGNED {
background-color: lightgreen !important
}

.field_value, .text_input {
min-width: 22em !important;
max-width: 22em !important;
}

#cf_release_notes, #cf_environment {
max-width: 19em !important;
}

body {
max-width: 78em !important;
}
.bz_comment {
max-width: 66em !important;
}

.bz_comment_text {
word-wrap: break-word;
}

}
######### END Rule #########

Comment 3 Marian Csontos 2012-12-12 11:26:57 UTC
(In reply to comment #2)
> FWIW here is the stylish [1] rule I use to make the BZ layout work for me on
> a 960px wide layout (half a 1920 screen). Your tastes may differ!

Applied. Muchas gracias!

/me really needs to start learning how to use Firefox...

-- M

Comment 4 Simon Green 2012-12-17 03:41:57 UTC
This is one of these issues where some people will complain if we make the change, and others will complain if we don't.

Currently the CSS (from global.css) is:

.bz_comment_text, .uneditable_textarea, tbody.file pre {
  font-family:monospace;
  white-space:pre-wrap;
}

I think the best compromise is to change it to break lines by default, but have an option (under the 'Expand all comments' link) to unwrap the line.

  -- simon

Comment 6 Matt Tyson 🤬 2013-03-05 06:19:01 UTC
The wide comment issues shown in bug 801571 should be fixed as a part of bug 823423.

The wide product and text fields in the bug header isn't something we can fix as not everyone may desire the smaller text boxes.  In this instance the stylish plugin may be the best fix.