From fce327a72558b41ce6a7303b38c804bfada694a1 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 29 Dec 2022 23:03:32 +0100 Subject: feat(frontend): Modularize related streams and add responsive styles --- src/frontend/tau/views/channel.cljs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/frontend/tau/views/channel.cljs') diff --git a/src/frontend/tau/views/channel.cljs b/src/frontend/tau/views/channel.cljs index db8c221..78fc6d9 100644 --- a/src/frontend/tau/views/channel.cljs +++ b/src/frontend/tau/views/channel.cljs @@ -21,7 +21,7 @@ [:div.flex.flex-col.items-center.px-5.py-2.flex-auto (if page-loading? [loading/page-loading-icon service-color] - [:div {:class "w-4/5"} + [:div.flex.flex-col {:class "w-4/5"} [navigation/back-button service-color] (when banner [:div @@ -38,9 +38,4 @@ [:span.mx-2 (.toLocaleString subscriber-count)]])]] [:div.my-2 [:p description]] - [:div.flex.justify-center.items-center.align-center - [:div.flex.justify-start.flex-wrap - (for [[i result] (map-indexed vector related-streams)] - [items/stream-item (assoc result :key i)])]] - (when-not (empty? next-page-url) - [loading/items-pagination-loading-icon service-color pagination-loading?])])])) + [items/related-streams related-streams next-page-url]])])) -- cgit v1.2.3