I have a notification panel where I display the latest notifications. The content of these notifications can vary in length, from short messages to longer ones. Short messages are displayed correctly, but longer ones are not appearing as intended. Here is how I adjusted the code for better appearance:
Below is the HTML structure in question:
<div data-role="content" class="ui-content">
<ul data-role="listview">
<li id="notification-block">
<img class="notification_bell" src="img/icons/alert.png">
<div class="notification-wrapper">
<h2 class="notification-header"></h2>
<p class="notification-message"></p>
<p class="read-more">
<a href="#all" style="text-decoration: none" data-transition="slide">
Read More <span class="fa fa-angle-right carot"></span>
</a>
</p>
</div>
</li>
</ul>
</div>
This is how I dynamically set the content of the notification message:
$(".notification-header").append(title);
$(".notification-message").append(message).first("p");
As shown in the Fiddle link provided below, the text may have overflow hidden with an ellipsis. My goal is for it to adjust the height and break the line to display the complete message.
Here is the recreated design on FIDDLE