From 785b8bd51e48bb1abd5c5ece56bae88080e46811 Mon Sep 17 00:00:00 2001 From: Fadhlan Ridhwanallah Date: Wed, 3 Apr 2024 14:07:51 +0700 Subject: [PATCH] Ellipsize pill component contents when too large --- packages/host/app/components/card-pill.gts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/host/app/components/card-pill.gts b/packages/host/app/components/card-pill.gts index 0743660470..cfcf86e2b9 100644 --- a/packages/host/app/components/card-pill.gts +++ b/packages/host/app/components/card-pill.gts @@ -46,7 +46,9 @@ export default class CardPill extends Component { <:default> - +
+ +
{{#if @removeCard}} { .is-autoattached { border-style: dashed; } + .card-content { + display: flex; + max-width: 100px; + } + :deep(.atom-format) { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } }