UX: Comma separate public custom field lists (#14200)
This commit is contained in:
parent
8f06528bb2
commit
2bf81592ec
|
@ -235,7 +235,13 @@
|
|||
{{#if uf.value}}
|
||||
<div class="public-user-field {{uf.field.dasherized_name}}">
|
||||
<span class="user-field-name">{{uf.field.name}}:</span>
|
||||
<span class="user-field-value">{{uf.value}}</span>
|
||||
<span class="user-field-value">
|
||||
{{#each uf.value as |v|}} {{! some values are arrays }}
|
||||
<span class="user-field-value-list-item">{{v}}</span>
|
||||
{{else}}
|
||||
{{uf.value}}
|
||||
{{/each}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
|
|
@ -159,7 +159,13 @@
|
|||
{{#if uf.value}}
|
||||
<div class="public-user-field {{uf.field.dasherized_name}}">
|
||||
<span class="user-field-name">{{uf.field.name}}</span>:
|
||||
<span class="user-field-value">{{uf.value}}</span>
|
||||
<span class="user-field-value">
|
||||
{{#each uf.value as |v|}} {{! some values are arrays }}
|
||||
<span class="user-field-value-list-item">{{v}}</span>
|
||||
{{else }}
|
||||
{{uf.value}}
|
||||
{{/each}}
|
||||
</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
|
|
@ -362,6 +362,13 @@
|
|||
.collapsed-info & {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.user-field-value-list-item:not(:last-of-type) {
|
||||
&:after {
|
||||
// create comma separated list
|
||||
content: ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.avatar-selector {
|
||||
|
|
|
@ -221,6 +221,12 @@ $avatar_margin: -50px; // negative margin makes avatars extend above cards
|
|||
// custom user fields
|
||||
.public-user-fields {
|
||||
margin: 0;
|
||||
.user-field-value-list-item:not(:last-of-type) {
|
||||
&:after {
|
||||
// create comma separated list
|
||||
content: ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// badges
|
||||
|
|
Loading…
Reference in New Issue