Skip to content

Commit

Permalink
Merge pull request #200 from evt-project/bugfix/line-verses
Browse files Browse the repository at this point in the history
Fix missing space in verses display in dipl transcription
  • Loading branch information
szenzaro authored Nov 7, 2023
2 parents 0da0773 + 9231c62 commit 548fa2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/components/lb/lb.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<span class="lb"
[evtHtmlAttributes]="data?.attributes"
[attr.id]="data.id" [attr.data-rend]="data.rend || ''" [attr.data-facs]="data.facs || ''">
<br *ngIf="displayBlock$ | async"/>
<span class="lineN" *ngIf="data.n && (displayBlock$ | async)">{{data.n}}</span>
<ng-container *ngIf="data">
<br *ngIf="displayBlock$ | async"/>
<span class="lineN" *ngIf="data.n && (displayBlock$ | async)">{{data.n}}</span>
</ng-container>
<ng-container *ngIf="displayInline$ | async">&nbsp;</ng-container>
</span>
6 changes: 6 additions & 0 deletions src/app/components/lb/lb.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export class LbComponent {
);
}

get displayInline$() {
return this.displayBlock$.pipe(
map((displayBlock) => !displayBlock),
);
}

constructor(
private evtModelService: EVTModelService,
) {
Expand Down

0 comments on commit 548fa2e

Please sign in to comment.