popovers: Show line breaks in Long type fields in user profile popovers.

This commit is contained in:
Cynthia Lin 2018-08-20 13:39:39 -07:00 committed by Tim Abbott
parent 0af7a12197
commit e92ec362ca
3 changed files with 7 additions and 1 deletions

View File

@ -192,6 +192,7 @@ exports.show_user_profile = function (element, user) {
profile_field.name = field.name;
profile_field.is_user_field = false;
profile_field.is_link = field_type === field_types.URL.id;
profile_field.type = field_type;
if (field_value) {
if (field_type === field_types.DATE.id) {
profile_field.value = moment(field_value).format(localFormat);

View File

@ -194,6 +194,11 @@ ul.remind_me_popover .remind_icon {
font-size: 15px;
}
.user-profile-key-value-section[data-type="2"] .user-profile-modal-field-value {
white-space: pre-line;
overflow-wrap: break-word;
}
#user-profile-modal {
border-radius: 4px;
}

View File

@ -22,7 +22,7 @@
<div class="user-profile-modal-content">
{{#each profile_data}}
{{#if this.value}}
<div class="user-profile-key-value-section">
<div data-type="{{this.type}}" class="user-profile-key-value-section">
<div class="user-profile-modal-field-name">{{this.name}}:</div>
{{#if this.is_user_field}}
<div class="pill-container not-editable" data-field-id="{{this.id}}">