From 349d7e394ad943ddf1d09d1aef3c4870b29cfb70 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Aug 2018 14:05:09 -0400 Subject: [PATCH] LP#1740412 Double grid tooltip max width 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 Signed-off-by: Michele Morgan Signed-off-by: Kathy Lussier --- Open-ILS/src/templates/staff/css/style.css.tt2 | 4 ++++ Open-ILS/src/templates/staff/share/t_autogrid.tt2 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Open-ILS/src/templates/staff/css/style.css.tt2 b/Open-ILS/src/templates/staff/css/style.css.tt2 index f59fbefb06..063da5f64e 100644 --- a/Open-ILS/src/templates/staff/css/style.css.tt2 +++ b/Open-ILS/src/templates/staff/css/style.css.tt2 @@ -564,6 +564,10 @@ eg-grid-field { display: none; } +.eg-grid-tooltip .tooltip-inner { + max-width: 400px; +} + [%# vim: ft=css %] diff --git a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 index 5e0a6be112..12d2fb689e 100644 --- a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 +++ b/Open-ILS/src/templates/staff/share/t_autogrid.tt2 @@ -332,6 +332,7 @@ style="padding-left:5px; padding-right:10px;" ng-init="html_value=translateCellTemplate(col, item)"> @@ -348,6 +349,7 @@ 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;"> -- 2.43.2