Skip to content

Commit

Permalink
word break when too long in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Sep 24, 2024
1 parent 076b387 commit 05784ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/demo/src/app/demo/demo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</div>
</div>

<klp-form-button klpWithTooltip="whiteOnBlack" tooltipText="Shalalalalala">
<klp-form-button klpWithTooltip="whiteOnBlack" tooltipText="ShalalalalalaShalalalalalaShalalalalalaShalalalalalaShalalalalalaShalalalalala">
I am a small piece of text
</klp-form-button>

Expand Down
2 changes: 1 addition & 1 deletion projects/klippa/ngx-enhancy-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klippa/ngx-enhancy-forms",
"version": "18.23.3",
"version": "18.23.4",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class WithTooltipDirective {
this.div.style.padding = '0.3rem 0.5rem';
this.div.style.boxSizing = 'border-box';
this.div.style.borderRadius = '3px';
this.div.style.wordBreak = 'break-all';
if (stringIsSetAndFilled(textToDisplay)) {
this.div.textContent = textToDisplay;
} else if (this.templateInstance) {
Expand Down

0 comments on commit 05784ed

Please sign in to comment.