From: Stephanie Leary Date: Thu, 16 Mar 2023 15:09:04 +0000 (+0000) Subject: Repair popovers and context menus X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3825362bddc82d8c6369e4e9cd3f7502c3565319;p=working%2FEvergreen.git Repair popovers and context menus Signed-off-by: Stephanie Leary --- diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html index 6992aae988..e1eeae7a65 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-body-cell.component.html @@ -1,8 +1,8 @@ - + triggers="mouseenter:mouseleave"> @@ -11,15 +11,15 @@ {{context.getRowColumnValue(row, column)}} - - + (mouseleave)="tooltip.close()" triggers="manual"> - + diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html b/Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html index f59dd139cd..f9dea6a872 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html +++ b/Open-ILS/src/eg2/src/app/share/grid/grid-body.component.html @@ -41,19 +41,25 @@ - - - +
+ + +
+ + + + + diff --git a/Open-ILS/src/eg2/src/app/share/grid/grid.component.css b/Open-ILS/src/eg2/src/app/share/grid/grid.component.css index a0a664b994..326cc39947 100644 --- a/Open-ILS/src/eg2/src/app/share/grid/grid.component.css +++ b/Open-ILS/src/eg2/src/app/share/grid/grid.component.css @@ -146,11 +146,27 @@ max-width: initial; } -/* GRID COLUMN WIDTHS */ -/* -Sets up column widths and text alignment for eg-grid tables according to -datatype, column name, and IDL class. Use more specific combinations in -components' CSS to override the default width. +/* Popovers' container needs to be inside and should be the same size */ +.eg-grid-cell-contents { + height: 100%; + width: 100%; +} + +/* Firefox td > div height fix */ +.eg-grid tr, +.eg-grid th, +.eg-grid td { + height: 100%; +} + +/* GRID PADDING */ +/* Sets up basic padding for table headers and cells. See the widths and +alignment section below for some overrides for specific data types and formats, +such as numeric cells that should be right-aligned. + +Padding should be set on .eg-grid-cell-contents rather than its parent . +This div exists to house the popovers, and should take up the full unpadded +height and width of the cell. /**/ /* override Bootstrap's table settings */ @@ -159,24 +175,28 @@ components' CSS to override the default width. } .eg-grid th, -.eg-grid td { +.eg-grid td .eg-grid-cell-contents { padding: .2rem .5rem; - /* - width: min-content; - /**/ } .eg-grid.compact th, -.eg-grid.compact td { +.eg-grid.compact td .eg-grid-cell-contents { line-height: 1.4; padding: .1rem .5rem .1rem .1rem; } .eg-grid.wide th, -.eg-grid.wide td { +.eg-grid.wide td .eg-grid-cell-contents { padding: .5rem; } +/* GRID COLUMN WIDTH AND ALIGNMENT */ +/* +Sets up column widths and text alignment for eg-grid tables according to +datatype, column name, and IDL class. Use more specific combinations in +components' CSS to override the default width. +/**/ + .eg-grid th { vertical-align: bottom; } @@ -203,17 +223,25 @@ components' CSS to override the default width. .eg-grid-number-cell, .eg-grid-type-id, .eg-grid-type-number, -.eg-grid-type-money { +.eg-grid-type-money, +.eg-grid-col-circ_count { font-variant-numeric: tabular-nums lining-nums; text-align: right; } -.compact .eg-grid-type-id, -.compact .eg-grid-type-number, -.compact .eg-grid-type-money { +.compact .eg-grid-type-id .eg-grid-cell-contents, +.compact .eg-grid-type-number .eg-grid-cell-contents, +.compact .eg-grid-type-money .eg-grid-cell-contents, +.compact .eg-grid-col-circ_count .eg-grid-cell-contents { padding: .1rem .25rem .1rem .4rem; } +/* These contain numbers we might want to compare, but should not be aligned right */ +.eg-grid-col-callnumber, +.eg-grid-col-barcode { + font-variant-numeric: tabular-nums lining-nums; +} + .eg-grid-col-name { min-width: 10ch; white-space: nowrap; diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html index 9895bef860..b613f99a3e 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.html @@ -6,17 +6,17 @@
Edit + target="_blank" i18n attr.aria-describedby="copy-callnumber-{{copy.call_number}}">Edit
{{copy.barcode}}
- View - | Edit
@@ -28,7 +28,7 @@ + attr.aria-describedby="copy-barcode-{{copy.id}}"> Item Hold @@ -36,7 +36,7 @@ + attr.aria-describedby="copy-callnumber-{{copy.call_number}}"> Call Number Hold @@ -48,7 +48,7 @@