Skip to content

Commit

Permalink
UI - fixed small changes (#543)
Browse files Browse the repository at this point in the history
* Removed duplicate author message and added `:` char into specific messages.

* Show breadcumbs full text on hover

* Fixed pinned sidebar translation
  • Loading branch information
milanmajchrak authored Mar 18, 2024
1 parent 8df8261 commit e04e24c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/breadcrumbs/breadcrumbs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</nav>

<ng-template #breadcrumb let-text="text" let-url="url">
<li class="breadcrumb-item"><div class="breadcrumb-item-limiter"><a [routerLink]="url" class="text-truncate" [ngbTooltip]="text | translate" placement="bottom" >{{text | translate}}</a></div></li>
<li class="breadcrumb-item"><div class="breadcrumb-item-limiter"><a [routerLink]="url" class="text-truncate" [ngbTooltip]="text | translate" placement="bottom" triggers="mouseenter:mouseleave">{{text | translate}}</a></div></li>
</ng-template>

<ng-template #activeBreadcrumb let-text="text">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div *ngIf="(itemAuthors | async).length">
<div class="pt-1"><strong>{{'item.view.box.author.message' | translate}}</strong></div>
<div *ngIf="(itemAuthors | async).length <= 5" class="item-author-wrapper pb-1">
<span *ngFor="let author of (itemAuthors | async); let i = index">
<span *ngIf="i > 0 && i < (itemAuthors | async).length -1">; </span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
(error)="handleImageError($event)">
</div>
</div>
<div class="row pt-1">
<strong>{{'item.view.box.author.message' | translate}}</strong>
</div>
<div class="row">
<ds-clarin-item-author-preview [item]="item" [fields]="AUTHOR_METADATA_FIELDS"></ds-clarin-item-author-preview>
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/assets/i18n/cs.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2684,9 +2684,9 @@
// "item.matomo-statistics.info.message": "Click on a data point to summarize by year / month.",
"item.matomo-statistics.info.message": "Kliknutím na datový bod provedete shrnutí podle roku/měsíce.",
// "item.view.box.author.message": "Author(s):",
"item.view.box.author.message": "Autoři",
// "item.view.box.publisher.message": "Publisher",
"item.view.box.publisher.message": "Vydavatel",
"item.view.box.author.message": "Autoři:",
// "item.view.box.publisher.message": "Publisher:",
"item.view.box.publisher.message": "Vydavatel:",
// "item.view.box.files.message": ["This item contains", "files"],
"item.view.box.files.message": ["Tento záznam obsahuje", "souborů"],
// "item.view.box.one.file.message": "This item contains 1 file",
Expand Down Expand Up @@ -3176,7 +3176,7 @@
// "menu.section.icon.new": "New menu section",
"menu.section.icon.new": "Nová menu sekce",
// "menu.section.icon.pin": "Pin sidebar",
"menu.section.icon.pin": "Postranní panel s kolíky",
"menu.section.icon.pin": "Připnout postranní panel",
// "menu.section.icon.processes": "Processes Health",
"menu.section.icon.processes": "Menu sekce Procesy",
// "menu.section.icon.registries": "Registries menu section",
Expand Down Expand Up @@ -3210,7 +3210,7 @@
// "menu.section.new_process": "Process",
"menu.section.new_process": "Proces",
// "menu.section.pin": "Pin sidebar",
"menu.section.pin": "Postranní panel s kolíky",
"menu.section.pin": "Připnout postranní panel",
// "menu.section.unpin": "Unpin sidebar",
"menu.section.unpin": "Zrušit připnutí postranního panelu",
// "menu.section.processes": "Processes",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2792,7 +2792,7 @@

"item.view.box.author.message": "Author(s):",

"item.view.box.publisher.message": "Publisher",
"item.view.box.publisher.message": "Publisher:",

"item.view.box.files.message": ["This item contains", "files"],

Expand Down

0 comments on commit e04e24c

Please sign in to comment.