Merge pull request #279 from ilvalle/fix-editor
Dynamic tab width in editor settings
This commit is contained in:
@@ -16,3 +16,23 @@
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
|
||||
/* Close button on tab*/
|
||||
.nav-tabs li a > .close {
|
||||
font-size: 18px;
|
||||
padding-left: 5px;
|
||||
float: right;
|
||||
margin-right: -10px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.nav-tabs>li>a {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
-o-text-overflow: ellipsis;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/*.nav-tabs>li {
|
||||
min-width: 100px;
|
||||
}*/
|
||||
|
||||
@@ -260,7 +260,7 @@ function load_file(url) {
|
||||
if(typeof (json['plain_html']) !== undefined) {
|
||||
if($('#' + json['id']).length === 0 || json['force'] === true) {
|
||||
// Create a tab and put the code in it
|
||||
var tab_header = '<li><a href="#' + json['id'] + '" data-toggle="tab">' + json['filename'] + '<button type="button" class="close">×</button></a></li>';
|
||||
var tab_header = '<li><a title="'+ json['filename'] +'" href="#' + json['id'] + '" data-toggle="tab"><button type="button" class="close">×</button>' + json['realfilename'] + '</a></li>';
|
||||
var tab_body = '<div id="' + json['id'] + '" class="tab-pane fade in " >' + json['plain_html'] + '</div>';
|
||||
if(json['force'] === false) {
|
||||
$('#filesTab').append($(tab_header));
|
||||
|
||||
Reference in New Issue
Block a user