Skip to content
This repository was archived by the owner on Oct 22, 2018. It is now read-only.

Commit cc08603

Browse files
committed
Fixed icons from ActionBar
1 parent 3964915 commit cc08603

File tree

7 files changed

+26
-10
lines changed

7 files changed

+26
-10
lines changed

nativescript/src/_app-common.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@
1010

1111
.ion-icon {
1212
font-family: 'Ionicons';
13+
14+
ActionBar & {
15+
font-size: 35;
16+
}
1317
}

src/app/+about/about.module.tns.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptRouterModule } from 'nativescript-angular';
23
import { SHARED_MODULES, COMPONENT_DECLARATIONS } from './about.common';
34

45
@NgModule({
56
imports: [
7+
NativeScriptRouterModule,
68
...SHARED_MODULES,
79
],
810
declarations: [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
img {
2+
max-height: 355px;
3+
width: auto;
4+
margin: 0 auto;
5+
}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<GridLayout rows="auto,auto">
2-
<Label class="h1 title"
3-
text="About me!"></Label>
4-
</GridLayout>
1+
<Page>
2+
<ActionBar title="About">
3+
<ActionItem ios.position="left" [nsRouterLink]="['/home']">
4+
<Button class="ion-icon" text="{{ '\uF30C' }}"></Button>
5+
</ActionItem>
6+
</ActionBar>
7+
<GridLayout rows="auto, *">
8+
<Label class="h1 title" text="About me!"></Label>
9+
</GridLayout>
10+
</Page>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
img{
22
width: auto;
33
max-height: 300px;
4-
}
5-
6-
.ion-icon.contact {
7-
font-size: 35;
4+
margin: 0 auto;
85
}

src/app/home/components/home/home.component.tns.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Page xmlns:Card="nativescript-cardview">
22
<ActionBar title="NativeScript Mobile App, yay!">
3-
<ActionItem ios.position="right">
4-
<Button class="ion-icon contact" text="{{ '\uf41a' }}" [routerLink]="'/about'"></Button>
3+
<ActionItem ios.position="right" [nsRouterLink]="['/about']">
4+
<Button class="ion-icon" text="{{ '\uf41a' }}"></Button>
55
</ActionItem>
66
</ActionBar>
77
<scroll-view>

src/app/home/home.module.tns.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { NgModule, Optional, SkipSelf, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptRouterModule } from 'nativescript-angular';
23
// app
34
import { HomeComponent } from './components/home/home.component';
45
import { SHARED_MODULES } from './home.common';
56

67
@NgModule({
78
imports: [
9+
NativeScriptRouterModule,
810
...SHARED_MODULES
911
],
1012
declarations: [HomeComponent],

0 commit comments

Comments
 (0)