Skip to content

Commit

Permalink
assets-32: break long titles so the edit button is not hidden. same f…
Browse files Browse the repository at this point in the history
…or the search result in order to display the entire title (#44)
  • Loading branch information
TIL-EBP authored Mar 13, 2024
1 parent c3fbc62 commit 918174a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/client-asset-sg/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -877,3 +877,7 @@ input {
.ellipsis {
@include mixins.text-ellipsis;
}

.break-word {
word-break: break-all;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ng-container *rxLet="rdAssetDetail$ | push; let rdAssetDetail">
<ng-container *ngIf="rdAssetDetail._tag === 'RemoteSuccess'">
<div class="flex flex-row justify-between mb-4">
<div class="text-dark-red font-bold mt-2.5" [innerHTML]="rdAssetDetail.value.titlePublic"></div>
<div class="text-dark-red break-word font-bold mt-2.5" [innerHTML]="rdAssetDetail.value.titlePublic"></div>
<a
*ngIf="null | isEditor"
asset-sg-icon-button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
[routerLink]="['.']"
[queryParams]="{ assetId: asset.assetId }"
queryParamsHandling="merge"
class="asset-title-public"
class="asset-title-public break-word"
[class.active]="currentAssetId._tag === 'Some' && asset.assetId === currentAssetId.value"
[innerHTML]="asset.titlePublic"></a>
<div class="asset-kind-format">
Expand Down

0 comments on commit 918174a

Please sign in to comment.