Bug fixes from upgrades

This commit is contained in:
Jason Wall 2024-02-29 21:33:55 +00:00
parent 9caeee82c8
commit 004903c36a
22 changed files with 62 additions and 68 deletions

View File

@ -1,8 +1,8 @@
ext {
minSdkVersion = 22
firebaseMessagingVersion = '23.0.5'
compileSdkVersion = 34
targetSdkVersion = 34
compileSdkVersion = 33
targetSdkVersion = 33
androidxActivityVersion = '1.7.0'
androidxAppCompatVersion = '1.6.1'
androidxCoordinatorLayoutVersion = '1.2.0'

View File

@ -83,7 +83,9 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {},
"options": {
"buildTarget": "dynamicbible:build"
},
"configurations": {
"production": {}
}

View File

@ -3,11 +3,12 @@
min-width: 20rem;
mat-icon {
padding-right: 1rem;
color: var(--primary-color);
height: auto !important;
}
}
mat-sidenav-content {
overflow: hidden;
}

View File

@ -1,9 +1,5 @@
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {

View File

@ -1,9 +1,5 @@
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {
@ -18,6 +14,7 @@
font-size: var(--card-font-size);
font-family: var(--card-font-family);
line-height: calc(var(--card-font-size) + 0.68rem);
color: var(--card-color)
}
.paragraph-heading {

View File

@ -1,8 +1,5 @@
.close-button {
float: right;
mat-icon {
font-size: 2rem;
}
}
.title {

View File

@ -1,9 +1,5 @@
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {

View File

@ -1,9 +1,5 @@
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {

View File

@ -114,8 +114,19 @@
min="12"
step="2"
thumbLabel="true"
[(ngModel)]="cardFontSize"
#ngSlider><input matSliderThumb (change)="cardFontSizeChanged({source: ngSliderThumb, parent: ngSlider, value: ngSliderThumb.value})" #ngSliderThumb="matSliderThumb" />
#ngSlider
><input
matSliderThumb
[(ngModel)]="cardFontSize"
(change)="
cardFontSizeChanged({
source: ngSliderThumb,
parent: ngSlider,
value: ngSliderThumb.value
})
"
#ngSliderThumb="matSliderThumb"
/>
</mat-slider>
</div>
</mat-nav-list>

View File

@ -11,3 +11,9 @@
.auth-button {
width: 100%;
}
button>.mat-icon, .mat-mdc-outlined-button>.mat-icon {
font-size: 1.125rem !important;
height: 1.125rem !important;
width: 1.125rem !important;
}

View File

@ -16,8 +16,8 @@
<app-strongs
[data]="cardItem.data"
[isCard]="true"
(openPassage)="triggerOpenPassage($event)"
(openStrongs)="triggerOpenStrongs($event)"
(openPassage)="openPassage($event)"
(openStrongs)="openStrongs($event)"
></app-strongs>
</div>
<div class="card-actions">

View File

@ -33,8 +33,8 @@ export class StrongsCardComponent extends CardComponent {
}
async openStrongs(q: string) {
const dict = q.substr(0, 1) === 'H' ? 'heb' : 'grk';
const sn = q.substr(1);
const dict = q.substring(0, 1) === 'H' ? 'heb' : 'grk';
const sn = q.substring(1);
if (this.asModal) {
const card = await this.appService.getStrongsCard(sn, dict);
this.dialog.open(StrongsModalComponent, {

View File

@ -1,4 +1,3 @@
<div mat-dialog-title>
<mat-toolbar>
<mat-icon aria-hidden="false" aria-label="Strongs Entry Icon">{{
icon$ | async
@ -14,7 +13,6 @@
</button>
</span>
</mat-toolbar>
</div>
<mat-dialog-content class="content">
<br />
<app-strongs

View File

@ -1,14 +1,10 @@
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {
width: 100%;
padding-left: 1rem;
padding-left: 1.2rem;
font-size: 1.5rem;
}
@ -17,6 +13,7 @@
font-size: var(--card-font-size);
font-family: var(--card-font-family);
line-height: calc(var(--card-font-size) + 0.5rem);
color: var(--card-color)
}
mat-toolbar {

View File

@ -6,7 +6,7 @@
- {{ data.def.p }} - {{ data.def.lemma }} -
<span *ngFor="let part of data.def.de"
><ng-template [ngIf]="part.sn"
><a (click)="openStrongs(part.sn)">{{ part.sn }}</a></ng-template
><a (click)="triggerOpenStrongs(part.sn)">{{ part.sn }}</a></ng-template
><ng-template [ngIf]="part.w"
><span [innerHTML]="part.w"></span></ng-template></span
><br />
@ -32,7 +32,7 @@
<strong>{{ wrd.w }}, {{ wrd.rs.length }}</strong
>:
<span *ngFor="let p of wrd.rs"
><a (click)="openPassage(p.r)">{{ makePassage(p.r) }}</a
><a (click)="triggerOpenPassage(p.r)">{{ makePassage(p.r) }}</a
>,
</span>
</dd>

View File

@ -37,10 +37,6 @@
line-height: 1.5rem;
padding: 1rem;
margin: 1rem 0 1rem 0;
mat-icon {
line-height: 1.3rem;
}
}
.backbutton:hover:not(.disable-hover) {
@ -55,10 +51,6 @@ h2 {
.close-button {
float: right;
mat-icon {
transform: scale(1.5);
}
}
.title {

View File

@ -40,22 +40,22 @@
<app-passage-card
*ngIf="isPassage(item)"
[cardItem]="item"
(onClose)="removeCard(item)"
(closeCard)="removeCard(item)"
></app-passage-card>
<app-strongs-card
*ngIf="isStrongs(item)"
[cardItem]="item"
(onClose)="removeCard(item)"
(closeCard)="removeCard(item)"
></app-strongs-card>
<app-words-card
*ngIf="isWords(item)"
[cardItem]="item"
(onClose)="removeCard(item)"
(closeCard)="removeCard(item)"
></app-words-card>
<app-note-card
*ngIf="isNote(item)"
[cardItem]="item"
(onClose)="removeCard(item)"
(closeCard)="removeCard(item)"
></app-note-card>
</mat-card>
</ng-container>

View File

@ -10,7 +10,7 @@ mat-card {
width: 100%;
position: relative;
margin-left: 6px;
margin-right: 60px;
margin-right: 6px;
}
.search-bar-input {

View File

@ -14,28 +14,28 @@ export class NavService {
}
public openNav() {
return this.sidenav.open();
return this.sidenav?.open();
}
public async closeNav() {
const r = await this.sidenav.close();
const r = await this.sidenav?.close();
return r;
}
public toggleNav(): void {
this.sidenav.toggle();
this.sidenav?.toggle();
}
public openSettings() {
return this.settings.open();
return this.settings?.open();
}
public async closeSettings() {
const r = await this.settings.close();
const r = await this.settings?.close();
return r;
}
public toggleSettings(): void {
this.settings.toggle();
this.settings?.toggle();
}
}

View File

@ -5,7 +5,7 @@
<title>Dynamic Bible</title>
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
content="viewport-fit=cover, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />

View File

@ -24,6 +24,9 @@ html {
--page-color-primary: rgb(46, 42, 54);
--page-color-accent: rgb(111, 109, 116);
--mat-toolbar-title-text-size: 16pt;
--mdc-list-list-item-label-text-size: 14pt;
}
body {
@ -41,6 +44,13 @@ body {
color: #777;
}
mat-icon {
font-size: 1.2em !important;
height: 30px !important;
width: 30px !important;
vertical-align: text-top;
}
.card-title {
font-size: 1.5rem;
font-family: "Roboto Condensed";
@ -50,8 +60,8 @@ body {
border-top-right-radius: var(--card-border-radius);
padding-right: 3.2rem;
mat-icon {
transform: scale(1.5);
> mat-icon {
vertical-align: text-top;
}
span {
@ -71,8 +81,8 @@ body {
.card-close-button {
position: absolute !important;
right: 1.5rem;
top: 0.5rem;
right: 0.5rem;
top: 0.3rem;
}
.card-actions {
@ -84,11 +94,6 @@ body {
border-bottom-left-radius: var(--card-border-radius);
border-bottom-right-radius: var(--card-border-radius);
padding-top: 10px;
mat-icon {
transform: scale(1.2);
}
}
.card-actions-right {
@ -204,7 +209,6 @@ p {
max-width: 95vw !important;
max-height: 95vh !important;
}
.mat-mdc-dialog-content {
max-height: 95vh !important;
}

View File

@ -19,6 +19,7 @@
white-space: nowrap;
word-wrap: normal;
direction: ltr;
font-feature-settings: "liga";
-webkit-font-feature-settings: "liga";
-webkit-font-smoothing: antialiased;
}