primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-toast: long detail text hides closing icon

Open Hexaflexagon opened this issue 5 years ago • 6 comments

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) https://primeng-toast-demo-hjqpdq.stackblitz.io

Current behavior A long detail text hides the closing icon image image

Please tell us about your environment:

  • Angular version: 11.0

  • PrimeNG version: 11.3

  • Browser: Chrome 89 | Firefox 78.8.0esr | Edge 89

  • Language: TypeScript 4.0.2

Hexaflexagon avatar Mar 16 '21 14:03 Hexaflexagon

Same bug with:

  • Angular 12.2.11
  • PrimeNG 12.2.1

Bonbons avatar Oct 25 '21 20:10 Bonbons

My toast icon is now overrun with no space blocks of text however you can actually close the toast.

''' .p-toast .p-toast-message { width: 19rem; } '''

for the record my overall toast is 25rem; so I just played with numbers until the closed stay.

waratah avatar Dec 06 '21 02:12 waratah

Same bug

  • Angular 13.2.2
  • PrimeNg 13.2.0 The following helped me:
.p-toast-message-text {
    overflow-wrap: break-word;
    max-width: 18.5rem;
}

buchatsky avatar Mar 24 '22 17:03 buchatsky

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

cetincakiroglu avatar Nov 09 '22 14:11 cetincakiroglu

Hi! Same bug

Angular 16.1.5 PrimeNg 16.0.2

eruslan44 avatar Jul 26 '23 09:07 eruslan44

Same bug

  • Angular 13.2.2
  • PrimeNg 13.2.0 The following helped me:
.p-toast-message-text {
    overflow-wrap: break-word;
    max-width: 18.5rem;
}

I find using this to behave better:

.p-toast-message-text {
  overflow-wrap: break-word;
  min-width: 0;
}

Abziz avatar Mar 22 '24 12:03 Abziz