diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml index eac55ad441c..4675ded1cdb 100644 --- a/app/views/shared/projects/_project.html.haml +++ b/app/views/shared/projects/_project.html.haml @@ -28,7 +28,7 @@ .project-cell{ class: css_class } .project-details.gl-pr-9.gl-sm-pr-0.gl-w-full.gl-display-flex.gl-flex-direction-column{ data: { testid: 'project-content', qa_project_name: project.name } } .gl-display-flex.gl-align-items-baseline.gl-flex-wrap - %h2.gl-font-base.gl-leading-20.gl-my-0.gl-overflow-wrap-anywhere + %h2.gl-font-base.gl-leading-20.gl-my-0.gl-wrap-anywhere = link_to project_path(project), class: 'text-plain gl-mr-3 js-prefetch-document', title: project.name do %span.namespace-name.gl-font-normal - if project.namespace && !skip_namespace diff --git a/app/views/users/_profile_sidebar.html.haml b/app/views/users/_profile_sidebar.html.haml index fa2a221dff4..217c03718db 100644 --- a/app/views/users/_profile_sidebar.html.haml +++ b/app/views/users/_profile_sidebar.html.haml @@ -1,6 +1,6 @@ .user-profile-sidebar .profile-header.gl-pb-5.gl-pt-3.gl-overflow-y-auto.gl-sm-pr-4 - .gl-align-top.gl-text-left.gl-max-w-80.gl-overflow-wrap-anywhere + .gl-align-top.gl-text-left.gl-max-w-80.gl-wrap-anywhere .user-info - if @user.confirmed? .gl-display-flex.gl-gap-4.gl-flex-direction-column diff --git a/config/tailwind.config.js b/config/tailwind.config.js index 49a621b4390..64ca50dbb62 100644 --- a/config/tailwind.config.js +++ b/config/tailwind.config.js @@ -35,6 +35,9 @@ function gitLabUIUtilities({ addUtilities }) { 'overflow-wrap': 'anywhere', 'word-break': 'normal', }, + '.wrap-anywhere': { + 'overflow-wrap': 'anywhere', + }, }); }