increased height of new post text area and include char count issue #8
This commit is contained in:
parent
e7e2723e73
commit
58394d83ab
2 changed files with 9 additions and 4 deletions
|
@ -9,3 +9,8 @@ page-stream {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modal-newpost {
|
||||||
|
.row {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -39,8 +39,6 @@ export class StreamPage {
|
||||||
}
|
}
|
||||||
pnut.user('me').then(res => {
|
pnut.user('me').then(res => {
|
||||||
this.myUsername = res.data.username;
|
this.myUsername = res.data.username;
|
||||||
console.log('-- check --');
|
|
||||||
console.log(this.myUsername);
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
@ -164,6 +162,7 @@ export class StreamPage {
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
// templateUrl: 'new-post.html'
|
// templateUrl: 'new-post.html'
|
||||||
|
selector: 'modal-newpost',
|
||||||
template: `
|
template: `
|
||||||
<ion-header>
|
<ion-header>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
|
@ -183,10 +182,11 @@ export class StreamPage {
|
||||||
<ion-card>
|
<ion-card>
|
||||||
<ion-card-content>
|
<ion-card-content>
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-textarea [(ngModel)]="ptext" autocomplete="true" spellcheck="true"></ion-textarea>
|
<ion-textarea [(ngModel)]="ptext" autocomplete="true" spellcheck="true" clearInput="true" rows="8"></ion-textarea>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-card-content>
|
</ion-card-content>
|
||||||
<ion-row justify-content-end>
|
<ion-row justify-content-end>
|
||||||
|
<ion-col col-2><div text-center>{{254 - ptext.length}}</div></ion-col>
|
||||||
<ion-col col-2>
|
<ion-col col-2>
|
||||||
<button ion-button (click)="send()">
|
<button ion-button (click)="send()">
|
||||||
<ion-icon name="send"></ion-icon>
|
<ion-icon name="send"></ion-icon>
|
||||||
|
@ -200,7 +200,7 @@ export class StreamPage {
|
||||||
export class NewPostModal {
|
export class NewPostModal {
|
||||||
title: string;
|
title: string;
|
||||||
replyid: string;
|
replyid: string;
|
||||||
ptext: string;
|
ptext: string = "";
|
||||||
options: Object;
|
options: Object;
|
||||||
myUsername: string;
|
myUsername: string;
|
||||||
|
|
||||||
|
|
Reference in a new issue