From 3bbcd1b51a91faed55a52d819b756301e1dfbf1a Mon Sep 17 00:00:00 2001 From: FadhlanR Date: Sat, 6 Apr 2024 13:48:05 +0700 Subject: [PATCH] Ellipsize pill component contents when too large (#1133) --- packages/base/field-component.gts | 5 +++++ packages/host/app/components/card-pill.gts | 13 ++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/base/field-component.gts b/packages/base/field-component.gts index 6eca02d93b..031cb297c0 100644 --- a/packages/base/field-component.gts +++ b/packages/base/field-component.gts @@ -94,6 +94,10 @@ export function getBoxComponent( }; } + function title(cardOrField: BaseDef, format: Format) { + return isCard(cardOrField) && format === 'atom' ? cardOrField.title : ''; + } + let component: TemplateOnlyComponent<{ Args: { format?: Format; displayContainer?: boolean }; }> = }