mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-31 06:40:39 +00:00
modification for long lib/dir/file name
This commit is contained in:
parent
2ab78acae7
commit
210fee97c5
@ -2177,6 +2177,23 @@ textarea:-moz-placeholder {/* for FF */
|
||||
#share-popup .tip {
|
||||
max-width:400px;
|
||||
}
|
||||
.ellipsis-op-target {
|
||||
display:inline-block;
|
||||
vertical-align:bottom;
|
||||
}
|
||||
#share-popup .op-target {
|
||||
max-width:400px;
|
||||
}
|
||||
#rename-form .op-target {
|
||||
max-width:280px;
|
||||
}
|
||||
#mv-form .op-target {
|
||||
max-width:410px;
|
||||
}
|
||||
#folder-perm-popup .op-target {
|
||||
max-width:540px;
|
||||
}
|
||||
/* group-join-form */
|
||||
/* group-join-form */
|
||||
#id_group_join_msg {
|
||||
width:260px;
|
||||
|
@ -214,7 +214,7 @@ define([
|
||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
||||
|
||||
var op_detail = $('.detail', form);
|
||||
op_detail.html(op_detail.html().replace('%(name)s', '<span class="op-target">' + Common.HTMLescape(dirent_name) + '</span>'));
|
||||
op_detail.html(op_detail.html().replace('%(name)s', '<span class="op-target ellipsis ellipsis-op-target" title="' + Common.HTMLescape(dirent_name) + '">' + Common.HTMLescape(dirent_name) + '</span>'));
|
||||
|
||||
var form_id = form.attr('id');
|
||||
var _this = this;
|
||||
@ -279,7 +279,7 @@ define([
|
||||
obj_type = this.model.get('is_dir') ? 'dir' : 'file';
|
||||
|
||||
var title = op_type == 'mv' ? gettext("Move {placeholder} to:") : gettext("Copy {placeholder} to:");
|
||||
title = title.replace('{placeholder}', '<span class="op-target">' + Common.HTMLescape(obj_name) + '</span>');
|
||||
title = title.replace('{placeholder}', '<span class="op-target ellipsis ellipsis-op-target" title="' + Common.HTMLescape(obj_name) + '">' + Common.HTMLescape(obj_name) + '</span>');
|
||||
|
||||
var form = $(this.mvcpTemplate({
|
||||
form_title: title,
|
||||
|
@ -47,7 +47,7 @@ define([
|
||||
render: function () {
|
||||
this.$el.html(this.template({
|
||||
title: gettext("Set {placeholder}'s permission")
|
||||
.replace('{placeholder}', '<span class="op-target">' + Common.HTMLescape(this.obj_name) + '</span>')
|
||||
.replace('{placeholder}', '<span class="op-target ellipsis ellipsis-op-target" title="' + Common.HTMLescape(this.obj_name) + '">' + Common.HTMLescape(this.obj_name) + '</span>')
|
||||
}));
|
||||
return this;
|
||||
},
|
||||
|
@ -50,7 +50,7 @@ define([
|
||||
render: function () {
|
||||
this.$el.html(this.template({
|
||||
title: gettext("Share {placeholder}")
|
||||
.replace('{placeholder}', '<span class="op-target">' + Common.HTMLescape(this.obj_name) + '</span>'),
|
||||
.replace('{placeholder}', '<span class="op-target ellipsis ellipsis-op-target" title="' + Common.HTMLescape(this.obj_name) + '">' + Common.HTMLescape(this.obj_name) + '</span>'),
|
||||
is_dir: this.is_dir,
|
||||
is_repo_owner: this.is_repo_owner,
|
||||
is_virtual: this.is_virtual,
|
||||
|
Loading…
Reference in New Issue
Block a user