FIX: fixed bugs in strongs modal, tweaked display of scroll bars, text in strongs

This commit is contained in:
jason.wall 2017-01-27 23:19:42 -05:00
parent 79a757f765
commit 3a536526c3
6 changed files with 55 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<ion-header> <ion-header>
<ion-toolbar> <ion-toolbar>
<ion-title> <ion-title>
<ion-icon name="paper" item-left></ion-icon> <span *ngIf="item !== undefined"><span *ngIf="data.status === -1">Error:</span>Strongs: {{item.prefix}}{{item.sn}}</span> <ion-icon name="paper" item-left></ion-icon> <span *ngIf="item !== undefined"><span *ngIf="item.status === -1">Error:</span>Strongs: {{item.prefix}}{{item.sn}}</span>
</ion-title> </ion-title>
<ion-buttons start> <ion-buttons start>
<button ion-button (click)="dismiss()" large> <button ion-button (click)="dismiss()" large>
@ -10,7 +10,7 @@
</ion-buttons> </ion-buttons>
</ion-toolbar> </ion-toolbar>
</ion-header> </ion-header>
<ion-content padding *ngIf="item !== undefined && data.status === 0"> <ion-content padding *ngIf="item !== undefined && item.status === 0">
<br> <br>
<h2>Strong's Definitition</h2> <h2>Strong's Definitition</h2>
<p> <p>
@ -29,12 +29,13 @@
</ul> </ul>
</template> </template>
<h2>Cross References</h2> <h2>Cross References</h2>
Translated as {{item.crossrefs.ss.length}} words
<dl> <dl>
<dd *ngFor="let wrd of item.crossrefs.ss"> <dd *ngFor="let wrd of item.crossrefs.ss">
{{wrd.w}}: <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span> <strong>{{wrd.w}}:</strong> <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span>
</dd> </dd>
</dl> </dl>
</ion-content> </ion-content>
<ion-content *ngIf="data !== undefined && data.status === -1"> <ion-content *ngIf="item !== undefined && item.status === -1">
<error-message [msg]="data.msg"></error-message> <error-message [msg]="item.msg"></error-message>
</ion-content> </ion-content>

View File

@ -1,5 +1,25 @@
strongs-modal { strongs-modal {
a { a {
cursor: pointer !important; cursor: pointer !important;
color: black;
border-bottom: 1px dotted #b3bfd0;
}
.bar-button-ios {
padding-right: 25px;
padding-left: 9px;
}
.bar-button-md, .bar-button-wp {
padding-left: 25px;
padding-right: 9px;
}
.scroll-content {
line-height: 1.5em;
}
dd {
line-height: 1.7em;
} }
} }

View File

@ -26,10 +26,11 @@
</div> </div>
<div class="strongs-cross"> <div class="strongs-cross">
<h2>Cross References</h2> <h2>Cross References</h2>
Translated as {{data.crossrefs.ss.length}} words
<ion-scroll scrollY="true"> <ion-scroll scrollY="true">
<dl> <dl>
<dd *ngFor="let wrd of data.crossrefs.ss"> <dd *ngFor="let wrd of data.crossrefs.ss">
<b>{{wrd.w}}</b>: <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span> <strong>{{wrd.w}}</strong>: <span *ngFor="let p of wrd.rs"><a (click)="openPassage(p.r)">{{makePassage(p.r)}}</a>, </span>
</dd> </dd>
</dl> </dl>
</ion-scroll> </ion-scroll>

View File

@ -29,6 +29,19 @@ strongs {
dd { dd {
-webkit-margin-start: 12px; -webkit-margin-start: 12px;
line-height: 1.7em;
}
::-webkit-scrollbar {
width: 12px;
}
/* Track */
::-webkit-scrollbar-track {
-webkit-box-shadow: rgba(0,0,0,0.05) 12px 12px inset;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.1);
} }
} }

View File

@ -31,6 +31,19 @@
ion-col { ion-col {
margin-bottom: 0px !important; margin-bottom: 0px !important;
} }
::-webkit-scrollbar {
width: 12px;
}
/* Track */
::-webkit-scrollbar-track {
-webkit-box-shadow: rgba(0,0,0,0.05) 12px 12px inset;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: rgba(0,0,0,0.1);
}
} }
@media screen and (max-width: 499px) { @media screen and (max-width: 499px) {

View File

@ -16,7 +16,7 @@
a { a {
color: black; color: black;
border-bottom: 1px dotted #ccc; border-bottom: 1px dotted #b3bfd0;
} }
} }