Fix path size width in drive

This commit is contained in:
yflory
2017-06-20 14:56:15 +02:00
parent 59fb5bd8be
commit c3f636851a
3 changed files with 6 additions and 2 deletions

View File

@@ -227,6 +227,7 @@ span.fa-folder-open {
display: flex;
flex-flow: column;
flex: 1;
min-width: 0;
}
#content {
box-sizing: border-box;

View File

@@ -276,7 +276,9 @@ span {
display: flex;
flex-flow: column;
flex: 1;
}
// Needed to avoid the folder's path to overflows
// https://stackoverflow.com/questions/38223879/white-space-nowrap-breaks-flexbox-layout
min-width: 0;}
#content {
box-sizing: border-box;
background: @content-bg;

View File

@@ -650,9 +650,10 @@ define([
};
var updatePathSize = function () {
return;
var $tb = $driveToolbar;
var w = $tree.width() + $tb.find('.leftside').width() + $tb.find('.rightside').width();
$driveToolbar.find('.path').css('max-width', 'calc(100vw - '+w+'px - 50px)');
$driveToolbar.find('.path').css('max-width', 'calc(100vw - '+w+'px)');
};
var getSelectedPaths = function ($element) {