diff --git a/src/core/features/tag/components/list/core-tag-list.html b/src/core/features/tag/components/list/core-tag-list.html index 7e6372e20..3ac3c33f2 100644 --- a/src/core/features/tag/components/list/core-tag-list.html +++ b/src/core/features/tag/components/list/core-tag-list.html @@ -1,3 +1,3 @@ - {{ tag.rawname }} + {{ tag.rawname }} diff --git a/src/core/features/tag/components/list/list.scss b/src/core/features/tag/components/list/list.scss index e73e7e8fc..27ddaad8b 100644 --- a/src/core/features/tag/components/list/list.scss +++ b/src/core/features/tag/components/list/list.scss @@ -1,7 +1,10 @@ +@import "~theme/globals"; + :host { line-height: 1.6; ion-badge { cursor: pointer; + @include margin-horizontal(4px, 4px); } } diff --git a/src/core/features/user/pages/about/about.html b/src/core/features/user/pages/about/about.html index e4858a324..952764eb3 100644 --- a/src/core/features/user/pages/about/about.html +++ b/src/core/features/user/pages/about/about.html @@ -94,10 +94,12 @@

- +

{{ 'core.user.interests' | translate}}

-

{{ user.interests }}

+ + {{ interest }} +
interest.trim()) : + undefined; + this.hasContact = !!(user.email || user.phone1 || user.phone2 || user.city || user.country || user.address); this.hasDetails = !!(user.url || user.interests || (user.customfields && user.customfields.length > 0)); @@ -250,6 +255,17 @@ export class CoreUserAboutPage implements OnInit, OnDestroy { return avatarUrl; } + /** + * Open a user interest. + * + * @param interest Interest name. + */ + openInterest(interest: string): void { + CoreNavigator.navigateToSitePath('/tag/index', { params: { + tagName: interest, + } }); + } + /** * @inheritdoc */ diff --git a/src/core/features/user/pages/about/about.scss b/src/core/features/user/pages/about/about.scss index c5c1284cb..b3e2bb2ec 100644 --- a/src/core/features/user/pages/about/about.scss +++ b/src/core/features/user/pages/about/about.scss @@ -1,3 +1,5 @@ +@import "~theme/globals"; + :host { .core-user-profile-maininfo::part(native) { @@ -36,6 +38,13 @@ } } + .core-user-profile-interests { + ion-badge { + cursor: pointer; + @include margin-horizontal(3px, 3px); + } + } + } :host-context([dir="rtl"]) ::ng-deep core-user-avatar .edit-avatar { diff --git a/src/core/features/user/services/handlers/tag-area.ts b/src/core/features/user/services/handlers/tag-area.ts index d4334817f..4aedb6814 100644 --- a/src/core/features/user/services/handlers/tag-area.ts +++ b/src/core/features/user/services/handlers/tag-area.ts @@ -68,6 +68,7 @@ export class CoreUserTagAreaHandlerService implements CoreTagAreaHandler { avatarUrl, heading: userbox.innerText, details: [], + url: profileUrl, user: { id: Number(match[1]), profileimageurl: avatarUrl || '',