2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

UX: Fix alignment in group navigation bar (#15169)

Same as #15145.
This commit is contained in:
Penar Musaraj 2021-12-02 09:45:33 -05:00 committed by GitHub
parent 1c0022c195
commit 732678f642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 32 deletions

View file

@ -262,6 +262,8 @@ export function createData(store) {
{ name: "admin", id: 3, automatic: false },
],
groupNames: ["staff", "lounge", "admin"],
selectedGroups: [1, 2],
settings: "bold|italic|strike|underline",

View file

@ -9,3 +9,15 @@
{{/each}}
{{/mobile-nav}}
{{/styleguide-example}}
{{#styleguide-example title="group page navigation-bar"}}
{{#mobile-nav class="group-nav" desktopClass="nav nav-pills"}}
<li class="group-dropdown">
{{group-dropdown groups=dummy.groupNames value="staff"}}
</li>
{{#each dummy.navItems as |ni|}}
<li><a href={{ni.href}} class={{if ni.styleGuideActive "active"}}>{{ni.displayName}}</a></li>
{{/each}}
{{/mobile-nav}}
{{/styleguide-example}}