Skip to content

Commit

Permalink
chore: force line-height istead of wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin committed Jun 5, 2024
1 parent 081300b commit 1ae9ce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 5 additions & 7 deletions projects/core/directives/hint/hint.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@ const GAP = 4;
@Component({
selector: 'tui-hint',
template: `
<div>
<ng-content></ng-content>
<span
*polymorpheusOutlet="content as text; context: context"
[innerHTML]="text"
></span>
</div>
<ng-content></ng-content>
<span
*polymorpheusOutlet="content as text; context: context"
[innerHTML]="text"
></span>
`,
styleUrls: ['./hint.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
3 changes: 1 addition & 2 deletions projects/core/directives/hint/hint.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

:host {
position: absolute;
display: flex;
align-items: center;
max-width: 18rem;
min-height: var(--tui-height-m);
padding: 0.75rem 1rem;
Expand All @@ -14,6 +12,7 @@
font: var(--tui-font-text-s);
white-space: pre-line;
word-wrap: break-word;
line-height: 1.25rem;

&:before {
content: '';
Expand Down

0 comments on commit 1ae9ce6

Please sign in to comment.