mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: fix horizontal group nav on mobile (#31259)
This fixes the "all groups" link on mobile, follow-up to 50136ee
Before

After

This commit is contained in:
parent
e433be9f61
commit
1d8cdfd5e0
@ -11,17 +11,20 @@ export default class GroupNavigation extends Component {
|
||||
@service site;
|
||||
|
||||
<template>
|
||||
{{#if this.site.mobileView}}
|
||||
<LinkTo @route="groups.index">
|
||||
{{i18n "groups.index.all"}}
|
||||
</LinkTo>
|
||||
{{else}}
|
||||
{{#if this.site.desktopView}}
|
||||
<GroupDropdown
|
||||
@groups={{@group.extras.visible_group_names}}
|
||||
@value={{@group.name}}
|
||||
/>
|
||||
{{/if}}
|
||||
<HorizontalOverflowNav class="group-nav">
|
||||
{{#if this.site.mobileView}}
|
||||
<li>
|
||||
<LinkTo @route="groups.index">
|
||||
{{i18n "groups.index.all"}}
|
||||
</LinkTo>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#each @tabs as |tab|}}
|
||||
<li>
|
||||
<LinkTo
|
||||
|
Loading…
Reference in New Issue
Block a user