Skip to content

Commit 506cc23

Browse files
committed
add ellipsis when action has additional options
1 parent bf1c250 commit 506cc23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/packages/core/entity-action/default/entity-action.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ export class UmbEntityActionDefaultElement<
6060
}
6161

6262
override render() {
63+
const label = this.manifest?.meta.label ? this.localize.string(this.manifest.meta.label) : this.manifest?.name;
64+
6365
return html`
6466
<uui-menu-item
65-
label=${ifDefined(
66-
this.manifest?.meta.label ? this.localize.string(this.manifest.meta.label) : this.manifest?.name,
67-
)}
67+
label=${ifDefined(this.manifest?.meta.additionalOptions ? label + '...' : label)}
6868
href=${ifDefined(this._href)}
6969
@click-label=${this.#onClickLabel}
7070
@click=${this.#onClick}>

0 commit comments

Comments
 (0)