Skip to content

Improve layout for item-with-type (CFM-411) #213

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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