mirror of https://github.com/Squidex/squidex.git
4 changed files with 25 additions and 25 deletions
@ -1,6 +1,8 @@ |
|||
<ng-container *ngIf="isPlain; else html"> |
|||
<span class="truncate">{{value}}</span> |
|||
<span> |
|||
<span class="truncate">{{value}}</span> |
|||
</span> |
|||
</ng-container> |
|||
<ng-template #html> |
|||
<span class="html-value" [innerHTML]="value.html"></span> |
|||
<span [outerHTML]="value.html"></span> |
|||
</ng-template> |
|||
@ -1,22 +1,20 @@ |
|||
:host ::ng-deep { |
|||
.html-value { |
|||
img { |
|||
margin-top: -15px; |
|||
max-height: 50px; |
|||
min-height: 50px; |
|||
position: absolute; |
|||
} |
|||
:host { |
|||
position: relative; |
|||
} |
|||
|
|||
img + span { |
|||
padding-left: 60px; |
|||
} |
|||
:host ::ng-deep { |
|||
img { |
|||
max-height: 50px; |
|||
min-height: 50px; |
|||
position: absolute; |
|||
top: -15px; |
|||
} |
|||
|
|||
span { |
|||
@include truncate; |
|||
} |
|||
img + span { |
|||
padding-left: 60px; |
|||
} |
|||
} |
|||
|
|||
.html-value { |
|||
position: relative; |
|||
span { |
|||
@include truncate; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue