Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

0.17.3 - Unreleased
---------------------------
- Enh #268: Expand the folder/file link area

0.17.2 - November 24, 2025
---------------------------
- Enh #264: Update download and upload actions
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"organisation",
"sharing"
],
"version": "0.17.2",
"version": "0.17.3",
"humhub": {
"minVersion": "1.18"
},
Expand Down
18 changes: 11 additions & 7 deletions resources/css/cfiles.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
.downloadzipped-button {
cursor: pointer;
}
.table-responsive td .title,
.table-responsive td .timestamp,
.table-responsive td .creator,
.table-responsive td .size {
Expand Down Expand Up @@ -107,7 +106,9 @@
width: 0;
}

@media (min-width: 418px) {
@media (hover: hover) {
/* Hide the context icon only on devices with hover effect, */
/* Ignore touchable devices because iPhone 17 Pro Max has a double tap issue */
#bs-table.table tr .context-icon {
display: none;
}
Expand Down Expand Up @@ -157,11 +158,14 @@
content: "\25b2";
}


.table-responsive td .title {
position: absolute;
width: 100%;
top: -10px;
#fileList .table-responsive td.title {
padding: 0 5px;
}
#fileList .table-responsive td.title > a {
display: flex;
align-items: center;
height: 100%;
padding: 5px 0;
}
@media (min-width: 420px) {
.table-responsive td:nth-child(2) {
Expand Down
37 changes: 21 additions & 16 deletions widgets/views/fileSystemItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
use humhub\modules\content\widgets\ContentObjectLinks;
use humhub\modules\file\libs\FileHelper;
use humhub\modules\stream\assets\StreamAsset;
use humhub\modules\ui\icon\widgets\Icon;
use humhub\modules\user\widgets\Image;
use humhub\widgets\bootstrap\Button;
use humhub\widgets\bootstrap\Link;
use humhub\widgets\TimeAgo;

/* @var $folder Folder */
Expand All @@ -29,22 +31,25 @@
<?php endif; ?>

<?php if ($row->isRenderColumn(FileSystemItemRow::COLUMN_TITLE)) : ?>
<td class="text-start">
<div style="position: relative">
<div class="title">
<i class="fa <?= $row->getIconClass(); ?>"></i>&nbsp;
<?php if ($row->getType() === "image") : ?>
<?= Button::asLink($row->getTitle(), $row->getUrl())
->options(['data-ui-gallery' => 'FilesModule-Gallery-' . $row->getParentFolderId()])
->tooltip($row->getDescription()) ?>
<?php elseif ($row->getBaseFile() !== null) : ?>
<?= FileHelper::createLink($row->getBaseFile(), [], ['class' => 'tt', 'title' => Html::encode($row->getDescription())]) ?>
<?php else: ?>
<?= Button::asLink($row->getTitle(), $row->getLinkUrl())
->tooltip($row->getDescription()) ?>
<?php endif; ?>
</div>
</div>
<td class="title">
<?php if ($row->getType() === 'image') : ?>
<?= Link::to($row->getTitle(), $row->getUrl())
->icon($row->getIconClass())
->options(['data-ui-gallery' => 'FilesModule-Gallery-' . $row->getParentFolderId()])
->tooltip($row->getDescription()) ?>
<?php elseif ($row->getBaseFile() !== null) : ?>
<?= FileHelper::createLink($row->getBaseFile(), [], [
'label' => Icon::get($row->getIconClass()) . ' ' . Html::encode($row->getBaseFile()->fileName),
'class' => 'link',
'data-bs-toggle' => 'tooltip',
'data-bs-title' => Html::encode($row->getDescription()),
]) ?>
<?php else: ?>
<?= Link::to($row->getTitle(), $row->getLinkUrl())
->icon($row->getIconClass())
->tooltip($row->getDescription()) ?>
<?php endif; ?>

<?= FileListContextMenu::widget([
'folder' => $folder,
'row' => $row,
Expand Down