fix(ui): local plugin readme

This commit is contained in:
charlie
2024-11-28 11:17:28 +08:00
parent 5e68c3efb0
commit 1a31e11f9b

View File

@@ -520,7 +520,9 @@
content (parse-user-md-content content item)]
(and (string/blank? (string/trim content)) (throw (js/Error. "blank readme content")))
(state/set-state! :plugin/active-readme [content item])
(shui/dialog-open! (fn [_] (display)) {:label "plugin-readme"}))
(shui/dialog-open! (fn [_] (display))
{:label "plugin-readme"
:content-props {:class "max-h-[86vh] overflow-auto"}}))
(p/catch #(do (js/console.warn %)
(notification/show! "No README content." :warning))))
;; market