Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
+1 vote
311 views
in CompleteFTP by (320 points)
Hey guys,

I set filemanager2 as the default for users.  I noticed two issues in it:

1) For directory trees with many levels and long folder names, the space for the breadcrumb is small.

2) In the navigation sidebar, after clicking on the arrow to expand a directory level, I can no longer retract it.

Any tips?  Thanks again for your patience with this inexperienced user.

1 Answer

0 votes
by (51.6k points)
selected by
 
Best answer

1) ChatGPT and I have developed a CSS modification that maximizes the space available for the breadcrumb. To try it out, create a file at

C:\ProgramData\Enterprise Distributed Technologies\Complete FTP\Include\Custom\customizations.js

with the following contents:

function checkAndModifyDivs() {
	if (typeof($) == 'undefined')
		return;
    var rowDiv = $('.navbar-inverse .row');
    if (rowDiv.length === 0)
        return;
    clearInterval(intervalId);

    rowDiv.css({
        'display': 'flex',
        'position': 'relative'
    });

    var firstDiv = rowDiv.children().first();
    firstDiv.removeClass('col-sm-3 col-md-3').css({
        'flex-grow': '1',
        'flex-shrink': '0',
        'flex-basis': 'auto',
        'position': 'relative',
        'z-index': '1'
    });

    var thirdDiv = rowDiv.children().eq(2);
    thirdDiv.removeClass('col-sm-5 col-md-5').css({
        'position': 'absolute',
        'right': '0',
        'z-index': '2',
		'background-color': 'rgb(33, 150, 243)'
    });

    var secondDiv = rowDiv.children().eq(1);
    secondDiv.removeClass('col-sm-4 col-md-4').css({
        'position': 'absolute',
        'right': thirdDiv.outerWidth(),
        'z-index': '2',
		'background-color': 'rgb(33, 150, 243)'
    });
}

var intervalId = setInterval(checkAndModifyDivs, 100);

2) The previously expanded folder will retract when another is expanded, so there should only be one expanded at any time.

by (51.6k points)
Please let me know how you go with that modified CSS. If it's good we might merge it into the next release.
by (320 points)
Hello,

The JS file worked perfectly. You may include it in the next release.

Thanks again!

Categories

...