Skip to content

Commit d2f81c2

Browse files
committed
fix: align folder name to center in list view
1 parent 62afc5d commit d2f81c2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

public/css/lfm.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,24 @@ a {
330330

331331
.list .item_name {
332332
font-size: 1.25rem;
333-
padding: 5px 0 5px;
334333
}
335334

336335
time {
336+
margin-top: 4px;
337337
font-size: .9rem;
338338
}
339339

340340
.grid time {
341341
display: none;
342342
}
343343

344+
.list .info {
345+
display: flex;
346+
flex-direction: column;
347+
align-items: flex-start;
348+
justify-content: center;
349+
}
350+
344351
.info > * {
345352
max-width: calc(100vw - 70px - 60px);
346353
}

src/LfmItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ public function time()
113113
// Avoid requesting lastModified for directories on S3-like drivers
114114
// because folders are virtual and may not have an object key.
115115
if ($this->isDirectory()) {
116-
return '';
116+
return null;
117117
}
118118

119119
try {
120120
return $this->lfm->lastModified();
121121
} catch (\Throwable $e) {
122122
// Gracefully degrade if backend cannot retrieve metadata
123-
return '';
123+
return null;
124124
}
125125
}
126126

0 commit comments

Comments
 (0)