Skip to content

Commit

Permalink
Improve behavior in changes view
Browse files Browse the repository at this point in the history
  • Loading branch information
davivcu committed Aug 24, 2024
1 parent 1c07397 commit c4d2da4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/verse/verse.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class VerseComponent {
// unless current text flow is prose
// In critical edition verses are always shown as block items, unless current text flow is prose
switch (this.editionLevel) {
case 'changesView':
case 'diplomatic':
case 'interpretative':
return this.textFlow === 'verses' || !hasLines;
Expand Down
1 change: 1 addition & 0 deletions src/app/components/verses-group/verses-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class VersesGroupComponent {
// In diplomatic and interpretative edition, if the text doesn't have any line, verses group are shown as block items
// In critical edition verses are always shown as block items
switch (this.editionLevel) {
case 'changesView':
case 'diplomatic':
case 'interpretative':
return !hasLines;
Expand Down
10 changes: 10 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,14 @@ evt-mod-detail .tab-content > .active {

evt-main-header .svg-inline--fa {
height: 0.85em;
}

evt-page :not(evt-apparatus-entry-detail) .head {
font-weight: bold;
display: block;
padding: 0.5em 0.1em 0.5em 0em;
}

[ng-reflect-text-flow="verses"] evt-verse {
display: block;
}

0 comments on commit c4d2da4

Please sign in to comment.