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 2349850 commit a4c0f12
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 @@ -9,6 +9,7 @@
- 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 new entries’ slugs weren’t getting propagated to other sites, if their entry type had a dynamic title format. ([#16347](https://github.com/craftcms/cms/issues/16347))
- 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 @@ -3738,7 +3738,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 a4c0f12

Please sign in to comment.