fix the issue with long file names also
This commit is contained in:
parent
497c42b0e5
commit
556d813e22
|
@ -118,7 +118,8 @@ public class WorkspaceWidget extends MVCPortlet {
|
||||||
itemsList = StorageHubServiceUtil.getItemChildren(authUser, itemId, itemId, start, offset);
|
itemsList = StorageHubServiceUtil.getItemChildren(authUser, itemId, itemId, start, offset);
|
||||||
String groupName = GroupLocalServiceUtil.getGroup(groupId).getName();
|
String groupName = GroupLocalServiceUtil.getGroup(groupId).getName();
|
||||||
groupName = groupName.replace("_", " ");
|
groupName = groupName.replace("_", " ");
|
||||||
toSet = new Breadcrumb(itemId, groupName+" Folder");
|
groupName = (groupName.length() > 20) ? groupName.substring(0, 19) + " ..." : groupName;
|
||||||
|
toSet = new Breadcrumb(itemId, groupName);
|
||||||
request.getPortletSession().setAttribute(BREADCRUMB_ATTR, toSet, PortletSession.APPLICATION_SCOPE);
|
request.getPortletSession().setAttribute(BREADCRUMB_ATTR, toSet, PortletSession.APPLICATION_SCOPE);
|
||||||
}
|
}
|
||||||
count = StorageHubServiceUtil.getItemChildrenCount(request, itemId);
|
count = StorageHubServiceUtil.getItemChildrenCount(request, itemId);
|
||||||
|
|
|
@ -128,6 +128,10 @@
|
||||||
color: #fefefe;
|
color: #fefefe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.workspace-widget-portlet .dataTables_wrapper {
|
||||||
|
margin-left: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
/* .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover */
|
/* .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover */
|
||||||
|
|
||||||
.noselect {
|
.noselect {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
function truncateText (str) {
|
function truncateText (str) {
|
||||||
var cutoff = 20;
|
var cutoff = 15;
|
||||||
if (/\s/.test(str)) {
|
if (/\s/.test(str)) {
|
||||||
cutoff = 50;
|
cutoff = 50;
|
||||||
}
|
}
|
||||||
return str.length < cutoff ? str : str.substr(0, cutoff-3) +'…';
|
return str.length < cutoff ? str : str.substr(0, cutoff-3) +' …';
|
||||||
}
|
}
|
||||||
|
|
||||||
function getInitials(fullname) {
|
function getInitials(fullname) {
|
||||||
|
|
Loading…
Reference in New Issue