mirror of
https://github.com/mempool/mempool.git
synced 2025-04-07 11:28:37 +02:00
Fix truncated hidden text layout flow bug
This commit is contained in:
parent
1e01f88c15
commit
94a7b710c5
@ -1,5 +1,5 @@
|
||||
<span class="truncate" [style.max-width]="maxWidth ? maxWidth + 'px' : null" [style.justify-content]="textAlign" [class.inline]="inline">
|
||||
<div class="hidden">{{ text }}</div>
|
||||
<div class="hidden-content">{{ text }}</div>
|
||||
<ng-container *ngIf="link">
|
||||
<a [routerLink]="link" class="truncate-link">
|
||||
<ng-container *ngIf="rtl; then rtlTruncated; else ltrTruncated;"></ng-container>
|
||||
|
@ -3,6 +3,7 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: baseline;
|
||||
position: relative;
|
||||
|
||||
.truncate-link {
|
||||
display: flex;
|
||||
@ -27,17 +28,17 @@
|
||||
&.inline {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
.hidden {
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
.hidden-content {
|
||||
color: transparent;
|
||||
position: absolute;
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 567px) {
|
||||
.hidden {
|
||||
.hidden-content {
|
||||
max-width: 150px;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user