Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredfrancis committed Jul 26, 2018
1 parent 177c20c commit dda6c62
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 1 addition & 4 deletions frontend/src/app/agent/chat/chat.component.html
Expand Up @@ -29,9 +29,6 @@

<mat-card fxFlex="50" class="json-response">
<h3>POST /api/v1</h3>
<br>
<pre>
{{prettyChatCurrent}}
</pre>
<pre>{{prettyChatCurrent}}</pre>
</mat-card>
</div>
8 changes: 7 additions & 1 deletion frontend/src/app/agent/chat/chat.component.scss
Expand Up @@ -63,7 +63,13 @@ mat-card{
.json-response{
background-color:#efefef;
pre{
overflow-y: scroll;
height: auto;
height: 500px;
overflow: auto;
background-color: #eeeeee;
word-break: normal !important;
word-wrap: normal !important;
white-space: pre !important;
}

}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/app/agent/entities/entities.component.html
Expand Up @@ -7,10 +7,10 @@
</div>

<div class="entities">
<div *ngFor="let entity of entities;let i=index" class="entity" routerLink="/agent/default/edit-entity/{{entity._id.$oid}}">
{{entity.name}}
<button mat-icon-button (click)="deleteEntity(entity._id.$oid,i)" color="warn">
<mat-icon aria-label="Delete this intent">delete</mat-icon>
<div *ngFor="let entity of entities;let i=index" class="entity">
<div routerLink="/agent/default/edit-entity/{{entity._id.$oid}}">{{entity.name}}</div>
<button mat-icon-button (click)="deleteEntity(entity._id.$oid,i)" color="warn">
<mat-icon aria-label="Delete this intent">delete</mat-icon>
</button>
</div>
</div>
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/app/agent/entities/entities.component.scss
Expand Up @@ -4,9 +4,12 @@ mat-card{
width: 100%;
}
.entities{

margin: 10px;
.entity{
display: flex;
align-items: center;

padding:5px;
margin-bottom: 3px;
cursor: pointer;
Expand Down

0 comments on commit dda6c62

Please sign in to comment.