From a09691421b5b9ac1129bb8895b2f31e1b4f817f7 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 16 Jun 2020 23:44:53 +0800 Subject: [PATCH] Fix iframe overflow --- web/src/main/frontend/components/hiccup.cljs | 42 ++++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/web/src/main/frontend/components/hiccup.cljs b/web/src/main/frontend/components/hiccup.cljs index 137df3561..866d6e55f 100644 --- a/web/src/main/frontend/components/hiccup.cljs +++ b/web/src/main/frontend/components/hiccup.cljs @@ -288,7 +288,7 @@ (->elem :a (cond-> - {:href href} + {:href href} title (assoc :title title)) (map-inline config label)) @@ -301,8 +301,8 @@ (->elem :a (cond-> - {:href href - :target "_blank"} + {:href href + :target "_blank"} title (assoc :title title)) (map-inline config label)))))) @@ -412,25 +412,25 @@ [:span ""])] [:a (cond-> - {:id (str "dot-" uuid) - :draggable true - :on-drag-start (fn [event] - (handler/highlight-heading! uuid) - (.setData (gobj/get event "dataTransfer") - "heading-uuid" - uuid) - (.setData (gobj/get event "dataTransfer") - "heading-dom-id" - heading-id) - (reset! *dragging? true) - (reset! *dragging-heading heading)) - ;; :on-drag-end (fn [event] - ;; (reset! *dragging? false) - ;; (reset! *mouse {})) + {:id (str "dot-" uuid) + :draggable true + :on-drag-start (fn [event] + (handler/highlight-heading! uuid) + (.setData (gobj/get event "dataTransfer") + "heading-uuid" + uuid) + (.setData (gobj/get event "dataTransfer") + "heading-dom-id" + heading-id) + (reset! *dragging? true) + (reset! *dragging-heading heading)) + ;; :on-drag-end (fn [event] + ;; (reset! *dragging? false) + ;; (reset! *mouse {})) - :style {:width 16 - :height 16} - :headingid (str uuid)} + :style {:width 16 + :height 16} + :headingid (str uuid)} (not dummy?) (assoc :href (str "/page/" uuid) :on-click (fn [e]