Skip to content

Commit

Permalink
Improve layout for item-with-type (CFM-411) (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Aug 29, 2024
1 parent ea72b9f commit 8e283ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions app/webroot/css/co-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,6 @@
.config-menu {
column-count: 4;
}
.item-with-type {
grid-template-columns: 1fr 2fr;
}
}

/* SPECIAL */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export default {
return this.app.types?.find((t) => t.id == this.item.type_id)?.display_name
},
itemClasses: function() {
return "item-with-type item-type-" + this.item.type_id;
if(this.app.cosettings[0]?.person_picker_display_types) {
return "item-with-type item-type-" + this.item.type_id;
}
return "item-type-" + this.item.type_id;
}
},
template: `
Expand Down

0 comments on commit 8e283ca

Please sign in to comment.