Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assets-32: break long titles so the edit button is not hidden #44

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading