mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 09:42:43 +01:00
Display file size next to uploaded file names
This commit is contained in:
parent
9933d18ab0
commit
dbd131037b
@ -1317,7 +1317,8 @@ a.button {
|
||||
|
||||
.files-item-cell {
|
||||
overflow: hidden;
|
||||
white-space: nowrap; }
|
||||
white-space: nowrap;
|
||||
font-size: 0.875rem; }
|
||||
|
||||
.files-item {
|
||||
display: table;
|
||||
@ -1328,16 +1329,17 @@ a.button {
|
||||
display: table-row; }
|
||||
|
||||
.file-name {
|
||||
width: 60%;
|
||||
font-size: 0.9375rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
|
||||
.file-size {
|
||||
color: #7e7e7e; }
|
||||
|
||||
.file-actions {
|
||||
width: 40%;
|
||||
text-align: right;
|
||||
font-size: 0.875rem; }
|
||||
width: 20%;
|
||||
text-align: right; }
|
||||
|
||||
.file-actions button,
|
||||
.file-actions .button {
|
||||
|
2
admin/assets/css/admin.min.css
vendored
2
admin/assets/css/admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -38,6 +38,7 @@
|
||||
.files-item-cell {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.files-item {
|
||||
@ -51,15 +52,17 @@
|
||||
}
|
||||
|
||||
.file-name {
|
||||
width: 60%;
|
||||
font-size: 0.9375rem;
|
||||
@include ellipsis;
|
||||
}
|
||||
|
||||
.file-size {
|
||||
color: $color-gray-xdark;
|
||||
}
|
||||
|
||||
.file-actions {
|
||||
width: 40%;
|
||||
width: 20%;
|
||||
text-align: right;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.file-actions button,
|
||||
|
@ -72,7 +72,7 @@
|
||||
?>
|
||||
<li>
|
||||
<div class="files-item">
|
||||
<div class="files-item-cell file-name <?= is_null($file->type()) ? '' : 'file-type-' . $file->type() ?>"><?= $file->name() ?></div>
|
||||
<div class="files-item-cell file-name <?= is_null($file->type()) ? '' : 'file-type-' . $file->type() ?>" data-overflow-tooltip="true"><?= $file->name() ?> <span class="file-size">(<?= $file->size() ?>)</span></div>
|
||||
<div class="files-item-cell file-actions">
|
||||
<a class="button button-link" href="<?= $this->pageUri($page) . $file->name() ?>" target="_blank" title="<?= $this->label('pages.preview-file') ?>"><i class="i-eye"></i></a>
|
||||
<button class="button-link" type="button" data-modal="deleteFileModal" data-modal-action="<?= $this->uri('/pages/' . trim($page->slug(), '/') . '/file/' . $file->name() . '/delete/') ?>" title="<?= $this->label('pages.delete-file') ?>">
|
||||
|
Loading…
x
Reference in New Issue
Block a user