Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix super long workspace names: limit to 3 letters for badge, fix CSS…
Browse files Browse the repository at this point in the history
… to adjust display.
  • Loading branch information
cdujeu committed Oct 16, 2015
1 parent 07155af commit 3b6797d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/core/model/Repository.js
Expand Up @@ -81,7 +81,7 @@ var Repository = (function () {
if (!this.badge) {
var letters = this.label.split(' ').map(function (word) {
return word.substr(0, 1);
}).join('');
}).slice(0, 3).join('');
this.badge = '<span class=\'letter_badge\'>' + letters + '</span>';
}
return this.badge;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/es6/model/Repository.es6
Expand Up @@ -68,7 +68,7 @@ class Repository {
getHtmlBadge(){
if(!this.label) return '';
if(!this.badge){
var letters = this.label.split(" ").map(function(word){return word.substr(0,1)}).join("");
var letters = this.label.split(" ").map(function(word){return word.substr(0,1)}).slice(0,3).join("");
this.badge = "<span class='letter_badge'>"+ letters +"</span>";
}
return this.badge;
Expand Down
8 changes: 4 additions & 4 deletions core/src/plugins/gui.ajax/res/js/es6/util/LangUtils.es6
Expand Up @@ -30,10 +30,10 @@ class LangUtils{
if(results[i].match(e)){
matches.push({url: RegExp['$&'],
protocol: RegExp.$2,
host:RegExp.$4,
path:RegExp.$5,
file:RegExp.$7,
hash:RegExp.$8});
host:RegExp.$3,
path:RegExp.$4,
file:RegExp.$6,
hash:RegExp.$7});
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions core/src/plugins/gui.ajax/res/themes/orbit/css/ajaxplorer.css
Expand Up @@ -6567,6 +6567,14 @@ div.horizontal_tabulator > div > div.horizontal_tabulator div.tabulatorContainer
font-weight: lighter;
}

span.first-bread em {
display: inline-block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.breadcrumbs-one i.ajxp-goto{
display: inline-block;
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/themes/orbit/css/allz.css

Large diffs are not rendered by default.

0 comments on commit 3b6797d

Please sign in to comment.