Fixes and initial styling for chat
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<ion-item class="message-bubble" *ngFor="let message of this.profile.messages" [ngClass]="{ 'user': (message.isUser == true) }">
|
||||
<ion-item class="message-bubble" *ngFor="let message of this.profile.messages" [ngClass]="{ 'is-user': (message.isUser == true) }">
|
||||
<img *ngIf="message.image" [src]="message.image" (press)="showLightbox($event, message.image)">
|
||||
<p *ngIf="message.text != ''">{{message.text}}</p>
|
||||
</ion-item>
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
page-chat {
|
||||
|
||||
.message-bubble {
|
||||
background-color: #000fff;
|
||||
color: #000000;
|
||||
max-width: 75%;
|
||||
padding: 0.75rem;
|
||||
|
||||
&.is-user {
|
||||
background-color: #fff000;
|
||||
margin: 1rem 0 1rem auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user