Skip to content

Commit

Permalink
Truncate long filenames in Resources block
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Sep 12, 2022
1 parent 9414b63 commit abd1b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/worldskills_resources/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
?>

<?php if ($download): ?>
<p><a href="<?php echo h($download); ?>" target="_blank" rel="noopener"><?php echo h($resource['name']['text']); ?></a></p>
<p><a href="<?php echo h($download); ?>" target="_blank" rel="noopener" class="d-inline-block w-100 text-truncate"><?php echo h($resource['name']['text']); ?></a></p>
<?php endif; ?>

<?php endforeach; ?>
Expand Down Expand Up @@ -71,7 +71,7 @@
?>

<?php if ($download): ?>
<p><a href="<?php echo h($download); ?>" target="_blank" rel="noopener"><?php echo h($resource['name']['text']); ?></a></p>
<p><a href="<?php echo h($download); ?>" target="_blank" rel="noopener" class="d-inline-block w-100 text-truncate"><?php echo h($resource['name']['text']); ?></a></p>
<?php endif; ?>
<?php endif; ?>

Expand Down

0 comments on commit abd1b84

Please sign in to comment.