summaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorDeveloper2026-06-27 04:21:22 +0200
committerDeveloper2026-06-27 04:21:22 +0200
commit81cd80aea8bfdec1c68ae5082fced1b0a3f5e51d (patch)
tree15fb8478ef4bc42e99124d7e2447e56f05519f3b /resources/views
parentdc3cbbfdd9455e419eaaf776c16544afdf95eadb (diff)
downloadcurious-81cd80aea8bfdec1c68ae5082fced1b0a3f5e51d.tar.gz
fix: show comment text for HN comment entries on movie page
Comments now display as 'Comment: <beginning of text>' with single-line truncation via hn-comment CSS class. Story-type entries still show title.
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/cinema_show.blade.php23
1 files changed, 15 insertions, 8 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php
index c8b0935..bac06e2 100644
--- a/resources/views/cinema_show.blade.php
+++ b/resources/views/cinema_show.blade.php
@@ -23,6 +23,16 @@
column-gap: 20px;
}
+.hn-comment {
+ font-size: 0.875rem;
+ color: #868e96;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
@media (max-width: 768px) {
.movie-credits {
columns: 1;
@@ -124,18 +134,15 @@
@foreach( $actors as $person )
<div>{{ $person->name }}</div>
@endforeach
- </div>
- </div>
- @endif
-
- @if ( ! empty($hnStories) )
- <div class="mt-3">
- <h4>Hacker News</h4>
<ul class="list-unstyled">
@foreach($hnStories as $story)
<li>
<a class="card-links" href="https://news.ycombinator.com/item?id={{ $story->story_id }}" target="_blank">
- {{ $story->title ?: 'HN Story' }}
+ @if ($story->type === 'comment' && ! empty($story->text))
+ <span class="hn-comment">Comment: {{ strip_tags($story->text) }}</span>
+ @else
+ {{ $story->title ?: 'HN Story' }}
+ @endif
</a>
| {{ \Carbon\Carbon::createFromTimestamp($story->time)->format('Y-m-d') }}
@if ($story->score > 0)