Skip to content

Commit

Permalink
Translate books are on one line
Browse files Browse the repository at this point in the history
And force synced the book font size
  • Loading branch information
josephmyers committed Nov 6, 2024
1 parent 6599736 commit 22b6b7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ <h2>
<span class="explanation">{{ t("confirm_translate") }}</span>
<div class="confirm-translate">
<div class="confirm-books confirm-translate-books">
@for (book of userSelectedTranslateBooks; track book) {
<span class="confirm-book">{{ book.name }}</span>
}
<span class="confirm-book">{{ selectedTranslateBooks() }}</span>
</div>
</div>
</mat-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,5 @@ app-notice {

.confirm-book {
padding-block: 4px;
font-size: 16px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export class DraftGenerationStepsComponent extends SubscriptionDisposable implem
}
}

selectedTranslateBooks(): string {
return this.userSelectedTranslateBooks.map(b => b.name).join(', ');
}

/**
* Filter selected translate books from available/selected training books.
* Currently, training books cannot in the set of translate books,
Expand Down

0 comments on commit 22b6b7f

Please sign in to comment.