From ae0abd6445219c03efcee6ba5c86100be8c45f8b Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Wed, 1 May 2024 10:43:02 -0500 Subject: [PATCH] Merge pull request #18159 from overleaf/jel-group-invite-header [web] Break word on group invite header GitOrigin-RevId: 790c24e8291f1dbdfa9231e4c9e3d4e531bf2b8f --- .../web/app/views/subscriptions/team/invite.pug | 2 +- .../subscriptions/team/invite_logged_out.pug | 2 +- .../group-invitation/group-invitation-join.tsx | 15 +++++++++++++-- .../group-invites/group-invites-item.tsx | 17 +++++++++++------ .../frontend/stylesheets/app/subscription.less | 6 ++++++ services/web/locales/en.json | 2 +- .../notifications/group-invitation.spec.tsx | 10 +++++----- .../components/notifications.test.tsx | 3 ++- 8 files changed, 40 insertions(+), 17 deletions(-) diff --git a/services/web/app/views/subscriptions/team/invite.pug b/services/web/app/views/subscriptions/team/invite.pug index d5fd59ffb8..07b1a75253 100644 --- a/services/web/app/views/subscriptions/team/invite.pug +++ b/services/web/app/views/subscriptions/team/invite.pug @@ -18,7 +18,7 @@ block content .col-md-8.col-md-offset-2.text-center(ng-cloak) .card(ng-controller="TeamInviteController") .page-header - h1.text-centered(ng-non-bindable) #{translate("invited_to_group", {inviterName: inviterName, appName: appName})} + h1.text-centered(ng-non-bindable) !{translate("invited_to_group", {inviterName: inviterName, appName: appName}, [{name: 'span', attrs: {class: 'team-invite-name'}}])} div(ng-show="view =='restrictedByManagedGroup'") .alert.alert-info diff --git a/services/web/app/views/subscriptions/team/invite_logged_out.pug b/services/web/app/views/subscriptions/team/invite_logged_out.pug index ade872b647..ddf24b3d9d 100644 --- a/services/web/app/views/subscriptions/team/invite_logged_out.pug +++ b/services/web/app/views/subscriptions/team/invite_logged_out.pug @@ -7,7 +7,7 @@ block content .col-md-8.col-md-offset-2.text-center .card .page-header - h1.text-centered #{translate("invited_to_group", {inviterName: inviterName, appName: appName})} + h1.text-centered !{translate("invited_to_group", {inviterName: inviterName, appName: appName }, [{name: 'span', attrs: {class: 'team-invite-name'}}])} if (accountExists) div diff --git a/services/web/frontend/js/features/project-list/components/notifications/groups/group-invitation/group-invitation-join.tsx b/services/web/frontend/js/features/project-list/components/notifications/groups/group-invitation/group-invitation-join.tsx index 0cb1c4b072..b33890e0b8 100644 --- a/services/web/frontend/js/features/project-list/components/notifications/groups/group-invitation/group-invitation-join.tsx +++ b/services/web/frontend/js/features/project-list/components/notifications/groups/group-invitation/group-invitation-join.tsx @@ -1,5 +1,5 @@ import { Button } from 'react-bootstrap' -import { useTranslation } from 'react-i18next' +import { useTranslation, Trans } from 'react-i18next' import Notification from '../../notification' import type { NotificationGroupInvitation } from '../../../../../../../../types/project/dashboard/notification' import getMeta from '@/utils/meta' @@ -30,7 +30,18 @@ export default function GroupInvitationNotificationJoin({ ] + } + /> + } action={