fix: file name truncation in list and grid views (#110)
- List view: add min-width:0 and overflow:hidden to .name-cell, add text-overflow:ellipsis to the name span, prevent icon shrink - Grid view: add text-overflow:ellipsis to .file-name Closes #110
This commit is contained in:
@@ -1791,6 +1791,10 @@ select:focus {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
color: #2d3748;
|
color: #2d3748;
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-info {
|
.file-info {
|
||||||
@@ -1857,6 +1861,14 @@ select:focus {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.file-item .name-cell span {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-item .file-icon {
|
.file-item .file-icon {
|
||||||
@@ -1868,6 +1880,7 @@ select:focus {
|
|||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-item .file-icon.folder-icon {
|
.file-item .file-icon.folder-icon {
|
||||||
|
|||||||
Reference in New Issue
Block a user