Skip to content

Commit

Permalink
Show line breaks number for all options except verses
Browse files Browse the repository at this point in the history
  • Loading branch information
davivcu committed Jul 10, 2024
1 parent 642aeff commit c1f8fc7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/components/lb/lb.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[attr.id]="data.id" [attr.data-rend]="data.rend || ''" [attr.data-facs]="data.facs || ''">
<ng-container *ngIf="data">
<br *ngIf="displayBlock$ | async"/>
<span class="lineN" *ngIf="(data.n && (displayBlock$ | async)) && !plainTextFlow">{{data.n}}</span>
<span class="lineN" *ngIf="(data.n && (displayBlock$ | async))">{{data.n}}</span>
</ng-container>
<ng-container *ngIf="displayInline$ | async">&nbsp;</ng-container>
</span>
4 changes: 0 additions & 4 deletions src/app/components/lb/lb.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ export class LbComponent {
);
}

get plainTextFlow() {
return this.textFlow === 'prose_strict';
}

get displayInline$() {
return this.displayBlock$.pipe(
map((displayBlock) => !displayBlock),
Expand Down
3 changes: 3 additions & 0 deletions src/app/components/verse/verse.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
height: 16px;
color: get-color(versesColor);
font-size: 0.7em;
border: 1px solid #000000b5;
border-radius: 8px;
padding-bottom: 1rem;
&:before {
content: '';
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"verses": "Verses",
"option_prose": "Prose with verse numbers",
"option_verses": "Verses",
"option_prose_strict": "Plain text",
"option_prose_strict": "Prose",
"page": "Page {{value}}",
"front": "Front",
"mainText": "Main text",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"verses": "Versi",
"option_prose": "Prose with verse numbers",
"option_verses": "Verses",
"option_prose_strict": "Plain text",
"option_prose_strict": "Prose",
"page": "Pagina {{value}}",
"front": "Front",
"mainText": "Testo principale",
Expand Down

0 comments on commit c1f8fc7

Please sign in to comment.