File tree 1 file changed +6
-6
lines changed
src/codes/clj/docs/frontend/panels/author 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 20
20
($ List {:listStyleType " square" }
21
21
(map (fn [item]
22
22
($ (-> 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 }}
24
24
($ Text {:id (id-key item) :className " social-preview-item"
25
25
:truncate " end" }
26
- (data-key item)))))
26
+ (if (= data-key :definition-id-to )
27
+ (str/replace (data-key item) #"/0$" " " )
28
+ (data-key item))))))
27
29
items))))
28
30
29
31
(defnc author-socials-preview-list [{:keys [socials]}]
80
82
($ Center
81
83
($ Group {:wrap " nowrap" }
82
84
($ Avatar {:src avatar-url
83
- :size 200
85
+ :size " xl "
84
86
:radius 200 })
85
87
(dom/div
86
88
($ Title {:order 3 }
89
91
($ Text {:fz " xs" :tt " uppercase" :fw 700 :c " dimmed" }
90
92
(name account-source))
91
93
92
- ($ Space {:h " sm" })
93
-
94
94
($ Text {:data-testid " author-social-summary"
95
95
:fz " lg" :fw 500 }
96
96
(author.adapters/->string-summary value)))))
97
97
98
98
($ Space {:h " lg" })
99
99
100
- (when socials
100
+ (when ( seq socials)
101
101
($ author-socials-preview-list {:socials socials}))
102
102
103
103
($ back-to-top)))))))
You can’t perform that action at this time.
0 commit comments