From 3bbcd1b51a91faed55a52d819b756301e1dfbf1a Mon Sep 17 00:00:00 2001 From: FadhlanR Date: Sat, 6 Apr 2024 13:48:05 +0700 Subject: [PATCH 1/3] 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 }; }> = } From 86f05163bed5576a21b5770b9ad30958703e2367 Mon Sep 17 00:00:00 2001 From: FadhlanR Date: Sat, 6 Apr 2024 14:14:51 +0700 Subject: [PATCH 2/3] Move title to card pill component (#1147) --- packages/base/field-component.gts | 5 ----- packages/host/app/components/card-pill.gts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/base/field-component.gts b/packages/base/field-component.gts index 031cb297c0..6eca02d93b 100644 --- a/packages/base/field-component.gts +++ b/packages/base/field-component.gts @@ -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 }; }> =