mirror of https://github.com/zulip/zulip.git
popovers: Show line breaks in Long type fields in user profile popovers.
This commit is contained in:
parent
0af7a12197
commit
e92ec362ca
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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}}">
|
||||
|
|
Loading…
Reference in New Issue