Skip to content

Commit

Permalink
Fixed #16353
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 27, 2024
1 parent 9fc09e7 commit cb69be5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed a SQL error that could occur if an element was saved with a title longer than 255 characters.
- Fixed an error that could occur when creating nested entries within Matrix fields. ([#16331](https://github.com/craftcms/cms/issues/16331))
- Fixed a bug where element index View menus could include a “Use defaults” button when no view customizations had been made.
- Fixed a bug where address cards were only showing the first two lines of the address. ([#16353](https://github.com/craftcms/cms/issues/16353))
- Fixed an RCE vulnerability.

## 5.5.7 - 2024-12-17
Expand Down
4 changes: 3 additions & 1 deletion src/fieldlayoutelements/addresses/AddressField.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function previewable(): bool
public function previewHtml(ElementInterface $element): string
{
/** @var Address $element */
return Html::tag('div', Craft::$app->getAddresses()->formatAddress($element));
return Html::tag('div', Craft::$app->getAddresses()->formatAddress($element), [
'class' => 'no-truncate',
]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/css/cp.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/src/css/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,7 @@ table {
display: none;
}

& > .card-attribute-preview {
& > .card-attribute-preview:not(:has(> .no-truncate)) {
--max-lines: 2;
margin: 0;
max-height: calc(var(--lh) * var(--max-lines));
Expand Down

0 comments on commit cb69be5

Please sign in to comment.