Merge branch 'master' into nymkappa/mega-branch

This commit is contained in:
nymkappa
2023-11-15 18:17:48 +09:00
26 changed files with 211 additions and 76 deletions

View File

@@ -1,4 +1,5 @@
<span class="truncate" [style.max-width]="maxWidth ? maxWidth + 'px' : null" [style.justify-content]="textAlign" [class.inline]="inline">
<div class="hidden">{{ text }}</div>
<ng-container *ngIf="link">
<a [routerLink]="link" class="truncate-link">
<ng-container *ngIf="rtl; then rtlTruncated; else ltrTruncated;"></ng-container>
@@ -11,6 +12,7 @@
</span>
<ng-template #ltrTruncated>
<span class="first">{{text.slice(0,-lastChars)}}</span><span class="last-four">{{text.slice(-lastChars)}}</span>
</ng-template>

View File

@@ -27,4 +27,17 @@
&.inline {
display: inline-flex;
}
}
}
.hidden {
color: transparent;
position: absolute;
max-width: 300px;
overflow: hidden;
}
@media (max-width: 567px) {
.hidden {
max-width: 150px;
}
}