Fix path size width in drive
This commit is contained in:
@@ -227,6 +227,7 @@ span.fa-folder-open {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
#content {
|
#content {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|||||||
@@ -276,7 +276,9 @@ span {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: column;
|
flex-flow: column;
|
||||||
flex: 1;
|
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 {
|
#content {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: @content-bg;
|
background: @content-bg;
|
||||||
|
|||||||
@@ -650,9 +650,10 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var updatePathSize = function () {
|
var updatePathSize = function () {
|
||||||
|
return;
|
||||||
var $tb = $driveToolbar;
|
var $tb = $driveToolbar;
|
||||||
var w = $tree.width() + $tb.find('.leftside').width() + $tb.find('.rightside').width();
|
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) {
|
var getSelectedPaths = function ($element) {
|
||||||
|
|||||||
Reference in New Issue
Block a user