farengeyt451 / ngx-tippy-wrapper

Angular wrapper for Tippy.js
https://farengeyt451.github.io/ngx-tippy-wrapper
MIT License
61 stars 14 forks source link

When filename is getting Big then tippy is getting overflowed out of tooltip container #55

Closed awesome-yasin closed 8 months ago

farengeyt451 commented 9 months ago

@awesome-yasin Provide more details or recreate the issue in another repo.

awesome-yasin commented 9 months ago

@farengeyt451 If you see when i hover this foldername and its very large name so text is getting overflowed, compared to Material Tooltip it ellipses the text with ... when text gets overflowed its tooltip image

awesome-yasin commented 9 months ago

I used simple [ngxTippy]=filename in my html div

farengeyt451 commented 8 months ago

@awesome-yasin I am not sure about adding a built-in cut text feature. You can use CSS fix for this:

    <button
      [ngxTippy]="filename"
      tippyClassName="cut-text-overflow"
      [tippyProps]="{
        ...
      }"
    >
      Button
    </button>
  .cut-text-overflow {
    .tippy-content {
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
  }
image