UX: Align group members button/dropdown to the right.
This commit is contained in:
parent
90dd12611c
commit
501d4ca564
|
@ -1,12 +1,20 @@
|
||||||
|
<div class="group-members-actions">
|
||||||
{{text-field value=filterInput
|
{{text-field value=filterInput
|
||||||
placeholderKey=filterPlaceholder
|
placeholderKey=filterPlaceholder
|
||||||
class="group-username-filter no-blur"}}
|
class="group-username-filter no-blur"}}
|
||||||
|
|
||||||
{{#if canManageGroup}}
|
{{#if canManageGroup}}
|
||||||
|
{{#if currentUser.admin}}
|
||||||
{{group-members-dropdown
|
{{group-members-dropdown
|
||||||
showAddMembersModal="showAddMembersModal"
|
showAddMembersModal="showAddMembersModal"
|
||||||
showBulkAddModal="showBulkAddModal"}}
|
showBulkAddModal="showBulkAddModal"}}
|
||||||
|
{{else}}
|
||||||
|
{{d-button icon="plus"
|
||||||
|
label="groups.add_members.title"
|
||||||
|
class="group-members-add"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#if hasMembers}}
|
{{#if hasMembers}}
|
||||||
{{#load-more selector=".group-members tr" action="loadMore"}}
|
{{#load-more selector=".group-members tr" action="loadMore"}}
|
||||||
|
|
|
@ -2,12 +2,19 @@
|
||||||
placeholderKey=filterPlaceholder
|
placeholderKey=filterPlaceholder
|
||||||
class="group-username-filter no-blur"}}
|
class="group-username-filter no-blur"}}
|
||||||
|
|
||||||
|
<div class="group-members-manage">
|
||||||
{{#if canManageGroup}}
|
{{#if canManageGroup}}
|
||||||
{{d-button action='showAddMembersModal'
|
{{#if currentUser.admin}}
|
||||||
icon="plus"
|
{{group-members-dropdown
|
||||||
|
showAddMembersModal="showAddMembersModal"
|
||||||
|
showBulkAddModal="showBulkAddModal"}}
|
||||||
|
{{else}}
|
||||||
|
{{d-button icon="plus"
|
||||||
label="groups.add_members.title"
|
label="groups.add_members.title"
|
||||||
class="group-add-members-btn btn btn-primary"}}
|
class="group-members-add"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#if hasMembers}}
|
{{#if hasMembers}}
|
||||||
{{#load-more selector=".group-members .user-info" action="loadMore"}}
|
{{#load-more selector=".group-members .user-info" action="loadMore"}}
|
||||||
|
|
|
@ -9,10 +9,19 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-username-filter {
|
.group-members-actions {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
|
||||||
top: -49px;
|
top: -49px;
|
||||||
|
right: 0px;
|
||||||
|
|
||||||
|
.group-username-filter {
|
||||||
|
margin: 0px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-members-dropdown, .group-members-add {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-post {
|
.group-post {
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-nav.mobile-nav {
|
.group-nav.mobile-nav {
|
||||||
margin-bottom: 10px;
|
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,11 +80,27 @@ table.group-manage-logs {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.group-outlet {
|
||||||
.group-username-filter {
|
.group-username-filter {
|
||||||
top: -52px;
|
position: absolute;
|
||||||
|
right: 0px;
|
||||||
|
top: -42px;
|
||||||
height: 27px;
|
height: 27px;
|
||||||
|
margin-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.group-members-manage {
|
||||||
|
width: 100%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.group-members-dropdown,
|
||||||
|
.group-members-add {
|
||||||
|
margin: 5px 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.group-add-members-btn {
|
.group-add-members-btn {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue