Merge branch 'bug-fixes-from-upgrades2' into 'main'

ok, don't mess with the icons sizes. *sigh*

See merge request walljm/dynamicbible!23
This commit is contained in:
Jason Wall 2024-03-01 01:19:30 +00:00
commit 678975e347
14 changed files with 26 additions and 17 deletions

View File

@ -91,7 +91,9 @@ export class AppComponent extends SubscriberBase implements AfterViewInit {
}
showHelp() {
this.dialog.open(HelpModalComponent);
this.dialog.open(HelpModalComponent, {
autoFocus: 'content',
});
}
ngAfterViewInit(): void {

View File

@ -60,6 +60,7 @@ export class CardComponent extends SubscriberBase {
addToSavedPage() {
this.dialog.open(AddToPageModalComponent, {
data: this.cardItem,
autoFocus: 'content',
});
}

View File

@ -49,6 +49,7 @@ export class NoteCardComponent extends CardComponent {
edit() {
this.dialog.open(NoteEditModalComponent, {
data: this.cardItem,
autoFocus: 'note-content',
});
}

View File

@ -4,7 +4,7 @@
<div class="title">{{ dialogTitle }}</div>
</mat-toolbar>
</div>
<mat-dialog-content>
<mat-dialog-content class="content">
<form [formGroup]="form">
<mat-form-field class="page-title">
<mat-label>Title</mat-label>

View File

@ -149,6 +149,7 @@ export class PassageCardComponent extends CardComponent implements OnInit {
const card = await this.appService.getStrongsCard(sn, dict);
this.dialog.open(StrongsModalComponent, {
data: card,
autoFocus: 'content',
});
} else {
this.appService.getStrongs(sn, dict, this.cardItem);

View File

@ -130,6 +130,7 @@ export class SavedPageCardComponent extends SubscriberBase {
data: {
title: this.savedPage.title,
savedPage: this.savedPage,
autoFocus: 'content',
},
});
}

View File

@ -11,9 +11,3 @@
.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

@ -101,7 +101,9 @@ export class SettingsComponent extends SubscriberBase {
savePage() {
this.navService.closeSettings();
this.dialog.open(PageEditModalComponent);
this.dialog.open(PageEditModalComponent, {
autoFocus: 'content',
});
}
updatePage(page: SavedPage) {
@ -127,7 +129,9 @@ export class SettingsComponent extends SubscriberBase {
createNote() {
this.navService.closeSettings();
this.dialog.open(NoteEditModalComponent);
this.dialog.open(NoteEditModalComponent, {
autoFocus: 'note-content',
});
}
//#endregion

View File

@ -39,6 +39,7 @@ export class StrongsCardComponent extends CardComponent {
const card = await this.appService.getStrongsCard(sn, dict);
this.dialog.open(StrongsModalComponent, {
data: card,
autoFocus: 'content',
});
} else {
this.appService.getStrongs(sn, dict, this.cardItem);

View File

@ -13,7 +13,7 @@
</span>
</mat-toolbar>
</div>
<mat-dialog-content>
<mat-dialog-content class="content">
<div>
<span *ngIf="hasBook === false">
<h2>Old Testament</h2>

View File

@ -30,7 +30,9 @@ export class NotesAdminPageComponent extends SubscriberBase implements OnInit {
}
addNote() {
this.dialog.open(NoteEditModalComponent);
this.dialog.open(NoteEditModalComponent, {
autoFocus: 'note-content',
});
}
ngOnInit() {
this.navService.closeNav(); // close the nav immediately.

View File

@ -93,7 +93,9 @@ export class SearchPageComponent extends SubscriberBase implements OnInit {
}
launchPicker() {
this.dialog.open(VersePickerModalComponent);
this.dialog.open(VersePickerModalComponent, {
autoFocus: 'content',
});
}
//#region Search

View File

@ -45,9 +45,9 @@ body {
}
mat-icon {
font-size: 1.2em !important;
height: 30px !important;
width: 30px !important;
// font-size: 1.2em !important;
// height: 30px !important;
// width: 30px !important;
vertical-align: text-top;
}