I am currently working on compiling a list of items, each requiring an icon to be displayed on the left-hand side. However, I have noticed that for items with long names, the text wraps under the icon which is not the desired outcome. Is there a way to prevent this from happening?
In the image below, you can see an example where the text "Created" is wrapping under the file icon:
https://i.sstatic.net/8lMxs.png
The method I am using to create each item in Bootstrap is as follows:
var renderActivity = function(a) {
var html = "";
html += "<a title='" + a.title + "' href='" + a.path +"' class='list-group-item clearfix" + a.type + "'>";
html += "<span class='glyphicon glyphicon-"+a.icon+" pull-left fa-3x'></span>";
html += "<div>";
html += "<h3 class='list-group-item-heading'>" + a.type + ": " + a.title + "</h3>";
html += "Created: " + a.created
html += "</div>";
html += "</a>";
return html
}