diff --git a/web/pgadmin/misc/file_manager/static/css/file_manager.css b/web/pgadmin/misc/file_manager/static/css/file_manager.css
index dd7596b4c..571e90e83 100644
--- a/web/pgadmin/misc/file_manager/static/css/file_manager.css
+++ b/web/pgadmin/misc/file_manager/static/css/file_manager.css
@@ -20,20 +20,6 @@
height: 17px;
}
-.fileinfo #contents li p > span.less_text,
-.fileinfo table#contents tr td:first-child p span.less_text {
- width: 100%;
- text-overflow: ellipsis;
- overflow: hidden;
- text-align: center;
- white-space: nowrap;
-}
-
-.fileinfo table#contents tr td p {
- display: inline-block;
- margin-bottom: 0;
-}
-
.fileinfo > h1 {
font-size: 16px;
margin: 100px auto;
@@ -86,7 +72,6 @@ x:-o-prefocus, .file-input-container {top:16px;width:198px;}
}
div.clip {
- width: 30px;
height: 30px;
margin: 10px auto;
overflow: hidden;
diff --git a/web/pgadmin/misc/file_manager/static/js/utility.js b/web/pgadmin/misc/file_manager/static/js/utility.js
index ae6b8b346..5e9eb2f08 100644
--- a/web/pgadmin/misc/file_manager/static/js/utility.js
+++ b/web/pgadmin/misc/file_manager/static/js/utility.js
@@ -533,7 +533,7 @@ define([
var class_type;
if ((data[key]).file_type == 'dir') {
- class_type = 'fa fa-folder-open fm_folder';
+ class_type = 'fa fa-folder-open fm_folder_grid';
} else if ((data[key]).file_type == 'drive') {
class_type = 'fa fa-hdd-o fm_drive';
} else {
@@ -560,9 +560,9 @@ define([
result += '' + fm_filename + '';
} else {
result +=
- '
' +
+ '
' +
'' + fm_filename +
- '';
+ '
';
}
if (props.Width && props.Width != '') {
result += '' +
@@ -611,7 +611,7 @@ define([
if ((data[key]).file_type == 'dir') {
class_type = 'tbl_folder';
- icon_type = 'fa fa-folder-open';
+ icon_type = 'fa fa-folder-open fm_folder_list';
} else if ((data[key]).file_type == 'drive') {
class_type = 'tbl_drive';
icon_type = 'fa fa-hdd-o';
@@ -639,11 +639,13 @@ define([
result += '' +
fm_filename + '';
} else {
- result += ''+
+ result += '
'+
+ '
' +
'' +
data_protected +
'' + fm_filename + '' +
- '';
+ '
' +
+ '
';
}
if (props.Size && props.Size != '') {
result += '' +
@@ -698,7 +700,7 @@ define([
if ($('.fileinfo').data('view') == 'grid') {
e.stopPropagation();
- $this = $('.file_manager').find('#contents li.selected p');
+ $this = $('.file_manager').find('#contents li.selected div');
orig_value = decodeURI($this.find('span.less_text').attr('title'));
newvalue = orig_value.substring(0, orig_value.indexOf('.'));
@@ -713,7 +715,7 @@ define([
$('.file_manager').off().on('keyup', function(e) {
if (e.keyCode == 13) {
e.stopPropagation();
- $('.fileinfo #contents li.selected p').find(
+ $('.fileinfo #contents li.selected div').find(
'input'
).trigger('blur');
}
@@ -721,7 +723,7 @@ define([
} else if ($('.fileinfo').data('view') == 'list') {
e.stopPropagation();
$this = $('.fileinfo').find(
- 'table#contents tbody tr.selected td:first-child p'
+ 'table#contents tbody tr.selected td:first-child div'
);
orig_value = decodeURI($this.find('span.less_text').html()),
newvalue = orig_value.substring(0, orig_value.lastIndexOf('.'));
@@ -737,7 +739,7 @@ define([
$('.file_manager').off().on('keyup', function(e) {
if (e.keyCode == 13) {
e.stopPropagation();
- $('.fileinfo table#contents tr.selected td p').find(
+ $('.fileinfo table#contents tr.selected td div').find(
'input'
).trigger('blur');
}
@@ -746,7 +748,7 @@ define([
});
// Rename UI handling
- $('.fileinfo #contents li p').on('blur dblclick', 'input', function(e) {
+ $('.fileinfo #contents li div').on('blur dblclick', 'input', function(e) {
e.stopPropagation();
var old_name = decodeURI($(this).siblings('span').attr('title'));
@@ -824,7 +826,7 @@ define([
}
});
- $('.fileinfo table#contents tr td p').on(
+ $('.fileinfo table#contents tr td div').on(
'blur dblclick', 'input',
function(e) {
var old_name = decodeURI($(this).siblings('span').attr('title')),
@@ -1141,7 +1143,7 @@ define([
select_box = `
- ${gettext('Show hidden files and folders')} ?
+ ${gettext('Show hidden files and folders')}?
@@ -1415,7 +1417,7 @@ define([
// we remove simple file upload element
$('.file-input-container').remove();
$('.upload').remove();
- $('.create').before(' ');
+ $('.create').before(' ');
$('#uploader .upload').off().on('click', function() {
// we create prompt
@@ -1579,8 +1581,8 @@ define([
// template for creating new folder
folder_div =
' ' +
- ' ' +
- 'New_Folder ' +
+ ' ' +
+ 'New_Folder ' +
'';
path = $('.currentpath').val();
@@ -1619,7 +1621,7 @@ define([
' ' +
'' +
''+
- '' +
+ '' +
'' + lg.new_folder + '' +
' | '+
' | ' +
diff --git a/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss b/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
index 404bf6d1b..45bcfebbf 100644
--- a/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
+++ b/web/pgadmin/misc/file_manager/static/scss/_file_manager.scss
@@ -40,8 +40,8 @@
.file_listing_table tbody tr td:nth-child(1),
.file_listing_table thead tr th:nth-child(1) {
- width: 100%;
- min-width: 100%;
+ width: 400px;
+ min-width: 400px;
}
.file_listing_table tbody tr td:nth-child(2),
@@ -53,9 +53,9 @@
.file_listing_table tbody tr td:nth-child(3),
.file_listing_table thead tr th:nth-child(3) {
- width: 200px;
- min-width: 200px;
- max-width: 200px;
+ width: 100%;
+ min-width: 100%;
+ max-width: 100%;
}
}
@@ -66,12 +66,39 @@
background: $table-hover-bg-color;
}
-.fileinfo table#contents tr td p {
+.fileinfo table#contents tr td {
font-family: $font-family-primary;
}
-.fm_folder {
+.fileinfo #contents li span.less_text {
+ width: 100%;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ text-align: center;
+ white-space: nowrap;
+ display: block;
+}
+
+.fileinfo table#contents tr td:first-child {
+ & span.less_text {
+ width: 100%;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ max-width: calc(400px - 30px);
+ }
+
+ & .fa {
+ line-height: inherit;
+ }
+}
+
+.fm_folder_grid {
font-size: xx-large !important;
+}
+
+.fm_folder_list,
+.fm_folder_grid {
color: $color-warning;
}
@@ -118,7 +145,7 @@
height: 80px;
text-align: center;
overflow: hidden;
- margin-bottom: 10px;
+ margin: 0.5rem;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
@@ -338,4 +365,4 @@
.cap_select_file {
cursor: pointer;
-}
+}
\ No newline at end of file
diff --git a/web/pgadmin/misc/file_manager/templates/file_manager/index.html b/web/pgadmin/misc/file_manager/templates/file_manager/index.html
index f854545e1..86cf6fd6e 100644
--- a/web/pgadmin/misc/file_manager/templates/file_manager/index.html
+++ b/web/pgadmin/misc/file_manager/templates/file_manager/index.html
@@ -8,12 +8,13 @@
|