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

This commit is contained in:
Jason Wall 2024-03-01 01:19:30 +00:00
parent 86f0374cf6
commit 42f165c02b
14 changed files with 26 additions and 17 deletions

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
<div class="title">{{ dialogTitle }}</div> <div class="title">{{ dialogTitle }}</div>
</mat-toolbar> </mat-toolbar>
</div> </div>
<mat-dialog-content> <mat-dialog-content class="content">
<form [formGroup]="form"> <form [formGroup]="form">
<mat-form-field class="page-title"> <mat-form-field class="page-title">
<mat-label>Title</mat-label> <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); const card = await this.appService.getStrongsCard(sn, dict);
this.dialog.open(StrongsModalComponent, { this.dialog.open(StrongsModalComponent, {
data: card, data: card,
autoFocus: 'content',
}); });
} else { } else {
this.appService.getStrongs(sn, dict, this.cardItem); this.appService.getStrongs(sn, dict, this.cardItem);

View File

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

View File

@ -11,9 +11,3 @@
.auth-button { .auth-button {
width: 100%; 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() { savePage() {
this.navService.closeSettings(); this.navService.closeSettings();
this.dialog.open(PageEditModalComponent); this.dialog.open(PageEditModalComponent, {
autoFocus: 'content',
});
} }
updatePage(page: SavedPage) { updatePage(page: SavedPage) {
@ -127,7 +129,9 @@ export class SettingsComponent extends SubscriberBase {
createNote() { createNote() {
this.navService.closeSettings(); this.navService.closeSettings();
this.dialog.open(NoteEditModalComponent); this.dialog.open(NoteEditModalComponent, {
autoFocus: 'note-content',
});
} }
//#endregion //#endregion

View File

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

View File

@ -13,7 +13,7 @@
</button> </button>
</span> </span>
</mat-toolbar> </mat-toolbar>
<mat-dialog-content class="content"> <mat-dialog-content class="content">
<br /> <br />
<app-strongs <app-strongs
[data]="cardItem.data" [data]="cardItem.data"

View File

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

View File

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

View File

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

View File

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