fix: file name display inconsitent between views

This commit is contained in:
DanyLE 2022-05-30 12:13:29 +02:00
parent c26e27d7ec
commit d109d6af39
4 changed files with 14 additions and 4 deletions

View File

@ -463,9 +463,10 @@ namespace OS {
} }
if(!v.text) if(!v.text)
v.text = v.filename; v.text = v.filename;
/*
if (v.text.length > 10) { if (v.text.length > 10) {
v.text = v.text.substring(0, 9) + "..."; v.text = v.text.substring(0, 9) + "...";
} }*/
v.iconclass = v.iconclass ? v.iconclass : v.type; v.iconclass = v.iconclass ? v.iconclass : v.type;
v.icon = v.icon; v.icon = v.icon;
items.push(v); items.push(v);

View File

@ -8,7 +8,7 @@ afx-file-view afx-label.status{
} }
afx-file-view afx-list-view > div.list-container > ul li{ afx-file-view afx-list-view > div.list-container > ul li{
width:70px; width:70px;
height: 60px; /*height: 60px;*/
background-color: transparent; background-color: transparent;
text-align: center; text-align: center;
margin-right: 5px; margin-right: 5px;

View File

@ -7,7 +7,7 @@ afx-file-view afx-label.status{
} }
afx-file-view afx-list-view > div.list-container > ul li{ afx-file-view afx-list-view > div.list-container > ul li{
width:70px; width:70px;
height: 60px; /*height: 60px;*/
background-color: transparent; background-color: transparent;
text-align: center; text-align: center;
margin-right: 5px; margin-right: 5px;

View File

@ -7,15 +7,24 @@ afx-file-view afx-label.status{
left:0px; left:0px;
transform: translateZ(0); transform: translateZ(0);
} }
afx-file-view afx-list-view > div.list-container > ul
{
display: flex;
flex-flow: row wrap;
}
afx-file-view afx-list-view > div.list-container > ul li{ afx-file-view afx-list-view > div.list-container > ul li{
float:left; float:left;
display: block; /*display: block;*/
} }
afx-file-view afx-list-view i{ afx-file-view afx-list-view i{
display: block; display: block;
} }
afx-file-view afx-list-view i.label-text{
word-break: break-word;
}
afx-file-view afx-grid-view i{ afx-file-view afx-grid-view i{
display: inline-block; display: inline-block;
} }