mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed fullwidth bug for members screen
- Added condition to make the members screen full width when filters Alpha feature is applied
This commit is contained in:
parent
6651b44de9
commit
c71e5f19bf
@ -51,7 +51,7 @@
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
class="gh-btn gh-btn-text gh-btn-link green gh-btn-icon gh-add-filter"
|
||||
class="gh-btn gh-btn-text gh-btn-link gh-btn-icon gh-add-filter"
|
||||
title="Delete filter"
|
||||
{{!-- {{on "click" (fn this.deleteFilter filter.id)}} --}}
|
||||
{{action "deleteFilter" filter.id}}
|
||||
|
@ -3,6 +3,7 @@ import {inject as service} from '@ember/service';
|
||||
|
||||
export default class MembersRoute extends AuthenticatedRoute {
|
||||
@service store;
|
||||
@service feature;
|
||||
|
||||
queryParams = {
|
||||
label: {refreshModel: true},
|
||||
@ -33,8 +34,16 @@ export default class MembersRoute extends AuthenticatedRoute {
|
||||
}
|
||||
|
||||
buildRouteInfoMetadata() {
|
||||
return {
|
||||
titleToken: 'Members'
|
||||
};
|
||||
if (this.feature.membersFiltering) {
|
||||
return {
|
||||
titleToken: 'Members',
|
||||
mainClasses: ['gh-main-fullwidth']
|
||||
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
titleToken: 'Members'
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -311,6 +311,7 @@ ul.nostyle li {
|
||||
position: relative;
|
||||
border-collapse: inherit;
|
||||
margin: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.gh-list-scrolling thead th {
|
||||
|
@ -8,7 +8,7 @@
|
||||
<GhNavMenu />
|
||||
{{/if}}
|
||||
|
||||
<main class="gh-main {{this.ui.mainClass}} {{if (and (feature "membersFiltering") (or (eq this.router.currentURL "/members") (eq this.router.currentURL "/members/import"))) "gh-main-fullwidth"}}" role="main">
|
||||
<main class="gh-main {{this.ui.mainClass}}" role="main">
|
||||
{{outlet}}
|
||||
|
||||
{{#if this.showBilling}}
|
||||
|
Loading…
Reference in New Issue
Block a user