diff options
| author | Developer | 2026-06-27 04:24:15 +0200 |
|---|---|---|
| committer | Developer | 2026-06-27 04:24:15 +0200 |
| commit | 6733c0b6d377ee2164e7a3ff6e8791859bff86d4 (patch) | |
| tree | 672f06689df51a0e0fbc0e3c3844275b6a12acd8 /resources/views | |
| parent | 37d10995adc02c4d3e8fd130e7524d14c56d643b (diff) | |
| download | curious-6733c0b6d377ee2164e7a3ff6e8791859bff86d4.tar.gz | |
fix: truncate HN comment text to 80 chars with ellipsis
Diffstat (limited to 'resources/views')
| -rw-r--r-- | resources/views/cinema_show.blade.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php index 175d51b..f9e613f 100644 --- a/resources/views/cinema_show.blade.php +++ b/resources/views/cinema_show.blade.php @@ -146,7 +146,7 @@ <li> <a class="card-links" href="https://news.ycombinator.com/item?id={{ $story->story_id }}" target="_blank"> @if ($story->type === 'comment' && ! empty($story->text)) - <span class="hn-comment">Comment: {{ strip_tags($story->text) }}</span> + <span class="hn-comment">Comment: {{ Str::limit(strip_tags($story->text), 80) }}</span> @else {{ $story->title ?: 'HN Story' }} @endif |
