Skip to content

Commit

Permalink
Move title to card pill component (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
FadhlanR authored Apr 6, 2024
1 parent 3bbcd1b commit 86f0516
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions packages/base/field-component.gts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ export function getBoxComponent(
};
}

function title(cardOrField: BaseDef, format: Format) {
return isCard(cardOrField) && format === 'atom' ? cardOrField.title : '';
}

let component: TemplateOnlyComponent<{
Args: { format?: Format; displayContainer?: boolean };
}> = <template>
Expand All @@ -116,7 +112,6 @@ export function getBoxComponent(
fieldType=field.fieldType
fieldName=field.name
}}
title={{title model.value f.format}}
data-test-card-format={{f.format}}
data-test-field-component-card
{{! @glint-ignore Argument of type 'unknown' is not assignable to parameter of type 'Element'}}
Expand Down
2 changes: 1 addition & 1 deletion packages/host/app/components/card-pill.gts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class CardPill extends Component<CardPillSignature> {
</RealmInfoProvider>
</:icon>
<:default>
<div class='card-content'>
<div class='card-content' title={{@card.title}}>
<this.component @displayContainer={{false}} />
</div>
{{#if @removeCard}}
Expand Down

0 comments on commit 86f0516

Please sign in to comment.