mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:32:45 +08:00
UX: stack group inbox label horizontally (#22130)
This commit is contained in:
parent
fa509224f0
commit
7da307669f
|
@ -1,8 +1,18 @@
|
|||
<div class="participant-groups" role="list" aria-label="{{i18n 'topic.participant_groups'}}">
|
||||
{{#each groups as |group|}}
|
||||
<a class="user-group trigger-group-card" href="{{group.url}}" data-group-card="{{group.name}}">
|
||||
{{d-icon 'users'}}
|
||||
{{group.name}}
|
||||
</a>
|
||||
{{/each}}
|
||||
</div>
|
||||
<div
|
||||
class="participant-group-wrapper"
|
||||
role="list"
|
||||
aria-label="{{i18n 'topic.participant_groups'}}"
|
||||
>
|
||||
{{#each groups as |group|}}
|
||||
<div class="participant-group">
|
||||
<a
|
||||
class="user-group trigger-group-card"
|
||||
href="{{group.url}}"
|
||||
data-group-card="{{group.name}}"
|
||||
>
|
||||
{{d-icon "users"}}
|
||||
{{group.name}}
|
||||
</a>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
|
@ -263,24 +263,29 @@
|
|||
.discourse-tag.box {
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
.participant-groups {
|
||||
margin-left: 0.5em;
|
||||
padding: 0 5px;
|
||||
border: 1px solid var(--primary-low);
|
||||
border-radius: 0.25em;
|
||||
min-width: 3em;
|
||||
@include ellipsis;
|
||||
|
||||
> a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.25em;
|
||||
color: var(--primary-high);
|
||||
.mobile-view & {
|
||||
height: 1.1em;
|
||||
}
|
||||
.d-icon {
|
||||
margin-right: 5px;
|
||||
.participant-group-wrapper {
|
||||
display: flex;
|
||||
|
||||
.participant-group {
|
||||
margin-left: 0.5em;
|
||||
padding: 0 5px;
|
||||
border: 1px solid var(--primary-low);
|
||||
border-radius: 0.25em;
|
||||
min-width: 3em;
|
||||
@include ellipsis;
|
||||
|
||||
> a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 1.25em;
|
||||
color: var(--primary-high);
|
||||
.mobile-view & {
|
||||
height: 1.1em;
|
||||
}
|
||||
.d-icon {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user