Skip to content

Commit

Permalink
Merge pull request #16241 from craftcms/bugfix/16234-card-view-tweaks
Browse files Browse the repository at this point in the history
Bugfix/16234 card view tweaks
  • Loading branch information
brandonkelly authored Dec 2, 2024
2 parents 4b18a24 + 16281ca commit c196ca9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Fixed a bug where it wasn’t possible to sort embedded element indexes by custom fields.
- Fixed a bug where changes to nested elements weren’t getting saved to a draft of the parent, if the element editor was triggered via the “Edit” action menu item. ([#16251](https://github.com/craftcms/cms/issues/16251))
- Fixed a bug where all elements would get soft-deleted when deleting a section on PostgreSQL. ([#16230](https://github.com/craftcms/cms/issues/16230))
- Fixed a bug where entry cards could contain two entry type icons if the “Entry Type” attribute was included in the card view designer. ([#16234](https://github.com/craftcms/cms/issues/16234))

## 5.5.3 - 2024-11-22

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.

13 changes: 13 additions & 0 deletions src/web/assets/cp/src/css/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3699,6 +3699,14 @@ table {
& > .cp-icon {
margin-inline: -2px -4px;
margin-block: 3px 0;

// hide the entry type icon if we're alreayd showing one for the card
+ .card-content
.card-body
.chip[data-type='craft\\\\models\\\\EntryType']
.cp-icon {
display: none;
}
}

.card-content,
Expand Down Expand Up @@ -3743,9 +3751,14 @@ table {

.checkbox-preview-label {
display: inline;

font-style: italic;
margin-inline-start: 5px;
}

.chip.small {
padding-inline: 0;
}
}
}

Expand Down

0 comments on commit c196ca9

Please sign in to comment.