Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions phpstan-baseline-lte-8.3.neon
Original file line number Diff line number Diff line change
@@ -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: []
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
13 changes: 13 additions & 0 deletions src/bundle/Resources/public/scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
Loading