Column width in search results

I have constructed a search within RT for unowned tickets that has
text-wrapping on some results and not on others. Here is the format code:

id </rt/Ticket/Display.html?id=id> /TITLE:#’,
Subject </rt/Ticket/Display.html?id=id> /TITLE:Subject’,
QueueName/STYLE:white-space:nowrap’,
ExtendedStatus’,
CreatedRelative/STYLE:white-space:nowrap’,
Priority’,
’ Take </Ticket/Display.html?Action=Take&id=Take> /TITLE: ’

As you can see, the Subject of the ticket has wrapping enabled (Not
disabled, more like!). This is not quite the behavior I am looking for.

I wish to have the text of the subject line shorten/lengthen according to
its current column width (dictated by the browser window size), NOT have the
text wrap to the next line.

View this message in context: http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866.html

I haven’t tried this personally but STYLE:overflow:hidden might be what
you’re after.On 05/07/2014 2:28 am, “AJ” aaron.mccarthy@southwestern.ie wrote:

I have constructed a search within RT for unowned tickets that has
text-wrapping on some results and not on others. Here is the format code:

id </rt/Ticket/Display.html?id=id> /TITLE:#‘,
Subject </rt/Ticket/Display.html?id=id> /TITLE:Subject’,
QueueName/STYLE:white-space:nowrap’,
ExtendedStatus’,
CreatedRelative/STYLE:white-space:nowrap’,
Priority’,
’ Take </Ticket/Display.html?Action=Take&id=Take> /TITLE: ’

As you can see, the Subject of the ticket has wrapping enabled (Not
disabled, more like!). This is not quite the behavior I am looking for.

I wish to have the text of the subject line shorten/lengthen according to
its current column width (dictated by the browser window size), NOT have
the
text wrap to the next line.


View this message in context:
http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

RT Training - Boston, September 9-10
Training — Best Practical Solutions

Thank you for getting back to me, I tried STYLE:overflow:hidden

It didnt work. However that example got me thinking about other methods so I
tried

text-overflow:ellipses

Nothing seems to work.

Would entering this as a css in theme be any good?

View this message in context: http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866p57869.html

I suspect that the containing element type is the problem rather than where
the CSS is defined.

This thread offers another potential solution (I haven’t tested it):
html - Why does overflow:hidden not work in a <td>? - Stack Overflow 8 July 2014 00:56, AJ aaron.mccarthy@southwestern.ie wrote:

Thank you for getting back to me, I tried STYLE:overflow:hidden

It didnt work. However that example got me thinking about other methods so
I
tried

text-overflow:ellipses

Nothing seems to work.

Would entering this as a css in theme be any good?


View this message in context:
http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866p57869.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

RT Training - Boston, September 9-10
Training — Best Practical Solutions

I tried this today in every single possible way and it didn’t work.

It’s like RT won’t accept it. Is there a module that will do it? Or do you
have any other ideas?

View this message in context: http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866p57876.html

I don’t think such a module exists; it doesn’t seem like a common request.
Out of curiosity, is there a specific problem you’re trying to fix with
this or is it just a matter of cosmetic preference?

My first step would be to develop some HTML independently of RT that
correctly demonstrates what you want to achieve, and possibly share it to
the list as a proof of concept.

After that, I’d try to implement that as STYLE information in the search
display format, then if that fails, look at creating local overrides of the
html/Elements/CollectionList and/or html/Elements/CollectionAsTable/Row
components and thus change the HTML being generated by RT in the first
place (but this would impose all ticket lists in the system with this
styling, not specific searches, which may or may not be acceptable).

The wiki has some small amount of information on this topic which may be
useful:
http://requesttracker.wikia.com/wiki/CustomizingWithLocalDirOn 9 July 2014 02:27, AJ aaron.mccarthy@southwestern.ie wrote:

I tried this today in every single possible way and it didn’t work.

It’s like RT won’t accept it. Is there a module that will do it? Or do you
have any other ideas?


View this message in context:
http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866p57876.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.

RT Training - Boston, September 9-10
Training — Best Practical Solutions

I will give it a try.

Just clarify, It is more for cosmetic purposes because a very long (wrapped)
subject line takes up too much room and (unwrapped) pushes everything off
the screen (see image)

Personally myself I dont see a problem with wrapping, they are obsessed with
having everything look PERFECT.

http://requesttracker.8502.n7.nabble.com/file/n57885/Long_Subject_Line.bmp

View this message in context: http://requesttracker.8502.n7.nabble.com/Column-width-in-search-results-tp57866p57885.html