Profile bio does not recognize line breaks (#20572)

Co-authored-by: Mac Siri <mac@forem.com>
This commit is contained in:
Gabriel Quaresma 2024-03-04 17:37:16 -03:00 committed by GitHub
parent 5d8ca0a3f7
commit 02459941a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -45,6 +45,10 @@
padding: var(--padding);
}
&__bio {
white-space: pre-wrap;
}
&__meta {
font-size: var(--fs-s);
color: var(--base-60);

View file

@ -64,7 +64,7 @@
</h1>
</div>
<p class="fs-base m:fs-l color-base-90 mb-4 mx-auto max-w-100 m:max-w-75"><%= @user.tag_line.presence || [t("views.users.empty")].sample %></p>
<p class="fs-base profile-header__bio m:fs-l color-base-90 mb-4 mx-auto max-w-100 m:max-w-75"><%= @user.tag_line.presence || [t("views.users.empty")].sample %></p>
<div class="profile-header__meta">
<% if @user.profile.location.present? %>
@ -151,7 +151,7 @@
</main>
<%= javascript_include_tag "storiesList", "followButtons",
"feedPreviewCards", "hideBookmarkButtons",
"profileDropdown", "users/profilePage",
"localizeArticleDates", "asyncUserStatusCheck",
defer: true %>
"feedPreviewCards", "hideBookmarkButtons",
"profileDropdown", "users/profilePage",
"localizeArticleDates", "asyncUserStatusCheck",
defer: true %>