From 656b7dd2c62614b5b514244750d27e3be62a46a5 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 26 Nov 2024 14:59:00 -0700 Subject: [PATCH] Api: Hide link comment from et2-link-string as well --- api/js/etemplate/Et2Link/Et2LinkList.ts | 5 +++++ api/js/etemplate/Et2Link/Et2LinkString.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Link/Et2LinkList.ts b/api/js/etemplate/Et2Link/Et2LinkList.ts index e309a6b3e9..6566b214ee 100644 --- a/api/js/etemplate/Et2Link/Et2LinkList.ts +++ b/api/js/etemplate/Et2Link/Et2LinkList.ts @@ -81,6 +81,11 @@ export class Et2LinkList extends Et2LinkString display: inline-block; } + et2-link::part(remark) { + /* Reset from Et2LinkString */ + display: initial; + } + et2-link { display: block; flex: 1 1 auto; diff --git a/api/js/etemplate/Et2Link/Et2LinkString.ts b/api/js/etemplate/Et2Link/Et2LinkString.ts index 4363f383c8..32f23fafd8 100644 --- a/api/js/etemplate/Et2Link/Et2LinkString.ts +++ b/api/js/etemplate/Et2Link/Et2LinkString.ts @@ -47,7 +47,7 @@ export class Et2LinkString extends Et2Widget(LitElement) implements et2_IDetache display: inline; } - et2-link::part(icon) { + et2-link::part(icon), et2-link::part(remark) { display: none; }