From b7a89cec59a657539e4bdfeb2bd9d303b65ecfdc Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 28 Mar 2017 10:12:28 +0100 Subject: [PATCH] feat(aio): show top-nav with same styling as side-nav when window is narrow Fixes #15490 --- aio/src/app/app.component.html | 5 +++-- aio/src/app/app.component.ts | 6 +++++- .../app/layout/top-menu/top-menu.component.ts | 6 +----- .../images/logos/standard/logo-nav-small.png | Bin 0 -> 1871 bytes 4 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 aio/src/assets/images/logos/standard/logo-nav-small.png diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 6753e99794..7b9bb34a7a 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -1,6 +1,7 @@ - + Home + @@ -8,7 +9,7 @@ - + diff --git a/aio/src/app/app.component.ts b/aio/src/app/app.component.ts index 37db1424f4..a81725bfec 100644 --- a/aio/src/app/app.component.ts +++ b/aio/src/app/app.component.ts @@ -15,7 +15,11 @@ import { AutoScrollService } from 'app/shared/auto-scroll.service'; }) export class AppComponent implements OnInit { readonly sideBySideWidth = 600; - readonly homeImageUrl = 'assets/images/logos/standard/logo-nav.png'; + get homeImageUrl() { + return this.isSideBySide ? + 'assets/images/logos/standard/logo-nav.png' : + 'assets/images/logos/standard/logo-nav-small.png'; + } isHamburgerVisible = true; // always ... for now isSideBySide = false; diff --git a/aio/src/app/layout/top-menu/top-menu.component.ts b/aio/src/app/layout/top-menu/top-menu.component.ts index 9fdfadfad6..0c0720ba32 100644 --- a/aio/src/app/layout/top-menu/top-menu.component.ts +++ b/aio/src/app/layout/top-menu/top-menu.component.ts @@ -5,8 +5,7 @@ import { NavigationNode } from 'app/navigation/navigation.service'; selector: 'aio-top-menu', template: ` `, styles: [` .fill-remaining-space { @@ -44,7 +43,4 @@ import { NavigationNode } from 'app/navigation/navigation.service'; export class TopMenuComponent { @Input() nodes: NavigationNode[]; - - @Input() - homeImageUrl: string; } diff --git a/aio/src/assets/images/logos/standard/logo-nav-small.png b/aio/src/assets/images/logos/standard/logo-nav-small.png new file mode 100644 index 0000000000000000000000000000000000000000..294e4c62b67ad14c95cc7a450274c05df6f08502 GIT binary patch literal 1871 zcmY*adpy%^AC@6GJda}!A~Vtf+u9tmhdnR-o*3p#lhUwZIb|Co$477CGnFBxNQp>= zLd_vej2z|=9&`98r&dk%O3v(^>g|2s`}4W)`+I-y>w8__>;C6Xb9S_mm(h?B6BCoi z*aEJiT~{>qq@_eFXyW1<(YA}?YGW-{!PR^xioHngI4Tb7fbtIyh58c0{fN-$(DNdc zn3zR0N)(0?slMRo(2y_+D%ukA4S^EHJ82jM{0%}4wuIoY&fw$WWFpuEY7B)#&@x~! z*n&(5K)C`Zew2$&mXIJS^*jm&qtR$k8WI{#4ul;wH#djD5ikV8NQ5w=#Dr0Oqm9BS zy5C9u!vhd0{$$d5Dk(e+yu<737amEqgg|zLeva>bQb_^-RSKj0uq84G+qr=qg~DM! zxkaTGJ6V(ynM4#R@9?9KT6{zPU+#yF1#CzBf13I3^jlVB6)j@{`}u5W8Hd(`USeXB z#TdZK9k-|8q<4slhuSu`N5EZ{x^mjiTO(9bTn{|ygV9j}|HCB%cRM>d4F*Otf@ay? z)^Ytoezwla+DZ6yzy(mMWU6UPTYn0EC{b1dmOK^a8q|<$z8(1VEwz4<$BoM5375Bo zYxDWl!hB!mY-C+Ap`7viRwT#kc%f=D7;_A6<(U^wdbxlDt+j|Yh3Cigy- zT!zghz0uTjq3O=FVf@ha_(tO)a+`YAx*9@gSb-}g2~18kYCzuP-p(F`!&w2U(0JOB z13l_gT~7V2Bb7sW%lg=DyCfnitC7DwRtsMdwDRg7RY~oBUYyRh_1neyC8)llFhCY+M~quGH0|%P=`(-X z{hEap%0>BSu1OmYJ#ZH;kvhH4J`hk4}q`dZIzJS>L#hj$gLjhy&qw84)Pyi_JjST`(W8Ae z5si9#Qe_WYj*hh1nM_j-2Vu zbIXzye!g2UM&YL#wL5WJB|D8^Zp(lS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