diff --git a/phpstan-baseline-lte-8.3.neon b/phpstan-baseline-lte-8.3.neon index f7858c3da8..aab4991158 100644 --- a/phpstan-baseline-lte-8.3.neon +++ b/phpstan-baseline-lte-8.3.neon @@ -1,13 +1,2 @@ parameters: - ignoreErrors: - - - message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\ContentInfoTransformer\:\:transform\(\) on a separate line has no effect\.$#' - identifier: method.resultUnused - count: 1 - path: tests/lib/Form/DataTransformer/ContentInfoTransformerTest.php - - - - message: '#^Call to method Ibexa\\AdminUi\\Form\\DataTransformer\\LanguageTransformer\:\:transform\(\) on a separate line has no effect\.$#' - identifier: method.resultUnused - count: 1 - path: tests/lib/Form/DataTransformer/LanguageTransformerTest.php + ignoreErrors: [] diff --git a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js index bb0c81e7fe..65cd7e7be1 100644 --- a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js +++ b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js @@ -202,7 +202,8 @@ const parse = (baseElement = doc) => { } for (const tooltipNode of tooltipNodes) { - const hasEllipsisStyle = getComputedStyle(tooltipNode).textOverflow === 'ellipsis'; + const computedStyle = getComputedStyle(tooltipNode); + const hasEllipsisStyle = computedStyle.textOverflow === 'ellipsis' || computedStyle['-webkit-line-clamp']; const hasNewTitle = tooltipNode.hasAttribute('title'); const tooltipInitialized = !!tooltipNode.dataset.originalTitle; let shouldHaveTooltip = !hasEllipsisStyle; diff --git a/src/bundle/Resources/public/scss/_tables.scss b/src/bundle/Resources/public/scss/_tables.scss index 2228bb6cbe..41424337d2 100644 --- a/src/bundle/Resources/public/scss/_tables.scss +++ b/src/bundle/Resources/public/scss/_tables.scss @@ -219,6 +219,19 @@ } } + &__body-cell-content { + &--ellipsis { + display: -webkit-box; + line-clamp: 2; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + word-break: break-all; + max-width: 40vw; + width: max-content; + } + } + .table &__cell--close-left, .table &__header-cell--close-left { padding-left: 0; diff --git a/src/lib/Form/DataTransformer/DateIntervalToArrayTransformer.php b/src/lib/Form/DataTransformer/DateIntervalToArrayTransformer.php index a2a253da10..df5942ad16 100644 --- a/src/lib/Form/DataTransformer/DateIntervalToArrayTransformer.php +++ b/src/lib/Form/DataTransformer/DateIntervalToArrayTransformer.php @@ -103,7 +103,7 @@ public function reverseTransform($value) } if (!empty($value['month']) && !empty($value['day']) && !empty($value['year']) && - false === checkdate($value['month'], $value['day'], $value['year'])) { + false === checkdate((int)$value['month'], (int)$value['day'], (int)$value['year'])) { throw new TransformationFailedException('This is an invalid date'); }