From dcd1ea6afad06fe954579b3e271e674ffadc4b7c Mon Sep 17 00:00:00 2001 From: SouthFox Date: Mon, 4 Sep 2023 09:05:17 +0800 Subject: [PATCH] [front/perf] update question style --- src/main/frontend/views.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/frontend/views.cljs b/src/main/frontend/views.cljs index 63bdbb8..51350ee 100644 --- a/src/main/frontend/views.cljs +++ b/src/main/frontend/views.cljs @@ -54,10 +54,11 @@ (for [ans (:answers post)] ^{:key ans} [:div {:class "p-3 bg-white shadow rounded-lg"} - [:img - {:src (-> ans :author :avatar_url)}] - [:a {:class "text-lg"} - (-> ans :author :name)] + [:div {:class "flex items-center mb-3"} + [:img {:class "h-10 rounded" + :src (-> ans :author :avatar_url)}] + [:a {:class "text-lg ml-3"} + (-> ans :author :name)]] [:div {:dangerouslySetInnerHTML {:__html (:content ans)}}]