-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
49 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.b-header, | ||
.brand-header-widgetized { | ||
.brand-header-contents { | ||
#brand-logo { | ||
max-height: 32px; | ||
} | ||
|
28 changes: 28 additions & 0 deletions
28
javascripts/discourse/connectors/home-logo__before/mobile-brand-header.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Component from "@glimmer/component"; | ||
import { service } from "@ember/service"; | ||
import { not, and } from "truth-helpers"; | ||
import MountWidget from "discourse/components/mount-widget"; | ||
import DMenu from "float-kit/components/d-menu"; | ||
import BrandHeaderContents from "../../components/brand-header-contents"; | ||
import dIcon from "discourse-common/helpers/d-icon"; | ||
|
||
export default class BrandHeaderContainer extends Component { | ||
@service site; | ||
|
||
<template> | ||
{{#if (and (not settings.show_bar_on_mobile) this.site.mobileView)}} | ||
<DMenu | ||
@icon="bars" | ||
title="hamburger_brand_menu" | ||
id="toggle-hamburger-brand-menu" | ||
class="brand-header-toggle icon btn-flat" | ||
> | ||
<:content> | ||
<div class="brand-header-contents"> | ||
<BrandHeaderContents /> | ||
</div> | ||
</:content> | ||
</DMenu> | ||
{{/if}} | ||
</template> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
javascripts/discourse/initializers/initialize-mobile-decorator.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters