Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

fix the layout of the contents in navbar #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<nav class="navbar navbar-default" id="editor-toolbar">
<div class="container-fluid">
<div class="row">
<div class="navbar-header col-md-2">
<div class="left-navbar">
<div *ngIf="record" [class.re-disabled]="displayingRevision">
<button type="button" class="btn navbar-btn btn-success" [disabled]="saveButtonDisabledAttribute" (click)="onSaveClick($event)">
<i class="fa fa-floppy-o" aria-hidden="true"></i>
Expand All @@ -13,21 +12,20 @@
</div>
</div>

<div class="nav navbar-nav col-md-8">
<div class="search-form col-md-6">
<div class="middle-navbar">
<div class="search-form">
<re-search-bar></re-search-bar>
</div>
<div *ngIf="record" class="search-form col-md-6">
<div *ngIf="record" class="search-form">
<re-tickets></re-tickets>
</div>
</div>

<div *ngIf="record" class="nav navbar-nav navbar-right col-md-2">
<div *ngIf="record" class="right-navbar">
<re-record-history (revisionChange)="onRevisionChange($event)" (revisionRevert)="onRevisionRevert()"></re-record-history>
</div>

</div>
</div>
</nav>

<re-manual-merge-modal #manualMergeModal></re-manual-merge-modal>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,21 @@
color: white;
font-size: 23px;
padding: 0 0 0 12px;
}
}

.row {
display: flex;
flex-wrap: nowrap;
padding: 0 10px;

.middle-navbar {
display: flex;
flex-grow: 1;
justify-content: center;
.search-form {
display: inline-block;
}
}

}

4 changes: 2 additions & 2 deletions src/app/record-editor/search-bar/search-bar.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="navbar-form input-group col-md-7 pull-left inline">
<div class="navbar-form input-group pull-left inline">
<input class="form-control search" [(ngModel)]="query" (keyup.enter)="searchOrGo()" placeholder="Search records" />
<span class="input-group-btn">
<a class="btn btn-default fa fa-search" (click)="searchOrGo()"></a>
</span>
</div>
<div *ngIf="resultCount >= 0" class="navbar-form col-md-5 inline">
<div *ngIf="resultCount >= 0" class="navbar-form inline">
<ng-container [ngSwitch]="resultCount">
<ng-container *ngSwitchCase="0">
<span class="result-text form-control-static">No results</span>
Expand Down
4 changes: 2 additions & 2 deletions src/app/record-editor/tickets/tickets.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ng-container *ngIf="tickets">
<div>
<ul class="display col-md-8">
<ul class="display">
<li *ngFor="let ticket of tickets | slice:0:displayLimit; let i = index">
<re-ticket [ticket]="ticket" (resolve)="onTicketResolve(i)"></re-ticket>
</li>
Expand All @@ -18,7 +18,7 @@
</li>
</ul>
</ng-template>
<div class="col-md-4">
<div class="inline">
<re-new-ticket-modal #newTicketModal (create)="onTicketCreate($event)"></re-new-ticket-modal>
</div>
</ng-container>
1 change: 1 addition & 0 deletions src/app/record-editor/tickets/tickets.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}

ul.display {
display: inline-block;
list-style-type: none;
padding-left: 0px;
margin-bottom: 0px;
Expand Down