Skip to content

Commit bf0fd25

Browse files
committed
fix(author): mobile improvements
1 parent c00d1f9 commit bf0fd25

File tree

1 file changed

+6
-6
lines changed
  • src/codes/clj/docs/frontend/panels/author

1 file changed

+6
-6
lines changed

src/codes/clj/docs/frontend/panels/author/view.cljs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
($ List {:listStyleType "square"}
2121
(map (fn [item]
2222
($ (-> List .-Item) {:key (id-key item)}
23-
($ Box {:w #js {:base 350 :xs 400 :sm 600 :md 800 :lg 900 :xl 1000}}
23+
($ Box {:w #js {:base 300 :xs 400 :sm 600 :md 800 :lg 900 :xl 1000}}
2424
($ Text {:id (id-key item) :className "social-preview-item"
2525
:truncate "end"}
26-
(data-key item)))))
26+
(if (= data-key :definition-id-to)
27+
(str/replace (data-key item) #"/0$" "")
28+
(data-key item))))))
2729
items))))
2830

2931
(defnc author-socials-preview-list [{:keys [socials]}]
@@ -80,7 +82,7 @@
8082
($ Center
8183
($ Group {:wrap "nowrap"}
8284
($ Avatar {:src avatar-url
83-
:size 200
85+
:size "xl"
8486
:radius 200})
8587
(dom/div
8688
($ Title {:order 3}
@@ -89,15 +91,13 @@
8991
($ Text {:fz "xs" :tt "uppercase" :fw 700 :c "dimmed"}
9092
(name account-source))
9193

92-
($ Space {:h "sm"})
93-
9494
($ Text {:data-testid "author-social-summary"
9595
:fz "lg" :fw 500}
9696
(author.adapters/->string-summary value)))))
9797

9898
($ Space {:h "lg"})
9999

100-
(when socials
100+
(when (seq socials)
101101
($ author-socials-preview-list {:socials socials}))
102102

103103
($ back-to-top)))))))

0 commit comments

Comments
 (0)