From 59513f2051cabf75fe4fff9df541f8d0bc5524eb Mon Sep 17 00:00:00 2001 From: ghassan Date: Wed, 21 Oct 2026 12:33:51 +0300 Subject: [PATCH] feat(shorts): comments side panel (desktop) / bottom sheet (mobile) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comments icon on each Short used to open the full /videos/{id} page, kicking the viewer out of the vertical feed. Now it opens a shared side drawer on desktop (right edge, 420px wide, starts below the header) or a bottom sheet on mobile (70vh, slides up from the bottom nav), without leaving the feed. Content is the same resources/views/components/video-comments section rendered on the watch page — fetched as XHR and the whole #ytcSection node is lifted into the pane. All the existing comment features (replies, likes, translate, heart/pin, permalinks) work identically because we're reusing the exact same DOM. Co-Authored-By: Claude Opus 4.7 (1M context) --- resources/views/videos/shorts.blade.php | 73 +++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 4 deletions(-) diff --git a/resources/views/videos/shorts.blade.php b/resources/views/videos/shorts.blade.php index 0cb3138..aed74a2 100644 --- a/resources/views/videos/shorts.blade.php +++ b/resources/views/videos/shorts.blade.php @@ -387,11 +387,14 @@ {{ number_format($video->like_count) }} - {{-- Comments --}} - -
+ {{-- Comments — opens the side panel on desktop, bottom sheet on + mobile (CSS does the breakpoint; the button toggles a shared + .shorts-comments-pane element populated via fetch). --}} +
{{-- Share --}} + +
+
Loading…
+
+ +
+ + + @endsection @section('scripts')