LP#1740412 Double grid tooltip max width
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Aug 2018 18:05:09 +0000 (14:05 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 30 Aug 2018 18:10:24 +0000 (14:10 -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>
Open-ILS/src/templates/staff/css/style.css.tt2
Open-ILS/src/templates/staff/share/t_autogrid.tt2

index f59fbef..063da5f 100644 (file)
@@ -564,6 +564,10 @@ eg-grid-field {
   display: none;
 }
 
+.eg-grid-tooltip .tooltip-inner {
+  max-width: 400px;
+}
+
 [%# 
 vim: ft=css 
 %]
index 5e0a6be..12d2fb6 100644 (file)
             style="padding-left:5px; padding-right:10px;"
             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;">