Skip to content

Commit

Permalink
Merge pull request #16117 from craftcms/bugfix/cms-16112-card-updates
Browse files Browse the repository at this point in the history
Update grid rules for field layouts
  • Loading branch information
brandonkelly authored Nov 17, 2024
2 parents bc04729 + e5adfe1 commit ca57c60
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Fixed a bug where Live Preview wasn’t reloading after reordering nested entries or addresses. ([#16122](https://github.com/craftcms/cms/issues/16122))
- Fixed a JavaScript error that could occur when reordering structured elements within an embedded element index. ([#16103](https://github.com/craftcms/cms/issues/16103))
- Fixed a bug where changes to nested entries/addresses in card view were getting published immediately on save, if the parent element was a draft.
- Fixed a bug where element cards could bleed out of their containers. ([#16112](https://github.com/craftcms/cms/issues/16112))

## 5.5.0.1 - 2024-11-13

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.

5 changes: 3 additions & 2 deletions src/web/assets/cp/src/css/_cp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ li.breadcrumb-toggle-wrapper {
padding-block: var(--xl);
padding-inline: var(--padding);
word-wrap: break-word;
container-type: inline-size;

& > hr {
margin-inline: calc(var(--xl) * -1);
Expand Down Expand Up @@ -1893,8 +1894,8 @@ li.breadcrumb-toggle-wrapper {
}
}

// 2 cols for 600 - 1535px
@media only screen and (min-width: $minDesktopWidth) and (max-width: $minXlUiWidth - calc(1rem/16)) {
// 2 cols when container is > 720px
@container (min-width: 45em) {
&.width-25,
&.width-50 {
width: 50%;
Expand Down
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 @@ -3759,7 +3759,7 @@ table {
.card-grid {
display: grid !important;
gap: var(--s) !important;
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

& > li {
border-radius: var(--large-border-radius);
Expand Down

0 comments on commit ca57c60

Please sign in to comment.