LP#1740412 Double grid tooltip max width
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Aug 2018 18:05:09 +0000 (14:05 -0400)
committerJason Stephenson <jason@sigio.com>
Thu, 20 Sep 2018 15:36:21 +0000 (11:36 -0400)
Bump the max-width of the grid tooltip from 200 to 400px to accommodate
longer messages.  Shorter messages will continue using narrower
tooltips.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/templates/staff/css/style.css.tt2
Open-ILS/src/templates/staff/share/t_autogrid.tt2

index 183d848..c5d28b5 100644 (file)
@@ -504,6 +504,10 @@ eg-grid-field {
   display: none;
 }
 
+.eg-grid-tooltip .tooltip-inner {
+  max-width: 400px;
+}
+
 [%# 
 vim: ft=css 
 %]
index 61d939e..80c5430 100644 (file)
             id="{{cellId(col, item)}}"
             ng-init="html_value=translateCellTemplate(col, item)">
             <span tooltip-class="eg-grid-tooltip"
+              tooltip-class="eg-grid-tooltip"
               tooltip-placement="top-left"
               uib-tooltip-html="cellOverflowed(cellId(col, item), 1) ? html_value : ''">
               <span ng-bind-html="html_value"></span>
             id="{{cellId(col, item)}}"
             ng-init="text_value = (itemFieldValue(item, col) | egGridValueFilter:col:item)"
             uib-tooltip="{{cellOverflowed(cellId(col, item), 1) ? text_value : ''}}"
+            tooltip-class="eg-grid-tooltip"
             tooltip-placement="top-left"
             tooltip-class="eg-grid-tooltip"
             style="padding-left:5px; padding-right:10px;">