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

Commit 3b6797d

Browse files
committed
Fix super long workspace names: limit to 3 letters for badge, fix CSS to adjust display.
1 parent 07155af commit 3b6797d

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

core/src/plugins/gui.ajax/res/js/core/model/Repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ var Repository = (function () {
8181
if (!this.badge) {
8282
var letters = this.label.split(' ').map(function (word) {
8383
return word.substr(0, 1);
84-
}).join('');
84+
}).slice(0, 3).join('');
8585
this.badge = '<span class=\'letter_badge\'>' + letters + '</span>';
8686
}
8787
return this.badge;

core/src/plugins/gui.ajax/res/js/es6/model/Repository.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Repository {
6868
getHtmlBadge(){
6969
if(!this.label) return '';
7070
if(!this.badge){
71-
var letters = this.label.split(" ").map(function(word){return word.substr(0,1)}).join("");
71+
var letters = this.label.split(" ").map(function(word){return word.substr(0,1)}).slice(0,3).join("");
7272
this.badge = "<span class='letter_badge'>"+ letters +"</span>";
7373
}
7474
return this.badge;

core/src/plugins/gui.ajax/res/js/es6/util/LangUtils.es6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class LangUtils{
3030
if(results[i].match(e)){
3131
matches.push({url: RegExp['$&'],
3232
protocol: RegExp.$2,
33-
host:RegExp.$4,
34-
path:RegExp.$5,
35-
file:RegExp.$7,
36-
hash:RegExp.$8});
33+
host:RegExp.$3,
34+
path:RegExp.$4,
35+
file:RegExp.$6,
36+
hash:RegExp.$7});
3737
}
3838
}
3939
}

core/src/plugins/gui.ajax/res/themes/orbit/css/ajaxplorer.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6567,6 +6567,14 @@ div.horizontal_tabulator > div > div.horizontal_tabulator div.tabulatorContainer
65676567
font-weight: lighter;
65686568
}
65696569

6570+
span.first-bread em {
6571+
display: inline-block;
6572+
width: 100%;
6573+
white-space: nowrap;
6574+
overflow: hidden;
6575+
text-overflow: ellipsis;
6576+
}
6577+
65706578
.breadcrumbs-one i.ajxp-goto{
65716579
display: inline-block;
65726580
cursor: pointer;

core/src/plugins/gui.ajax/res/themes/orbit/css/allz.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)