From 08590707c3791a5bf73519cf374c95557ffd4921 Mon Sep 17 00:00:00 2001 From: Bryce Date: Sat, 20 Jan 2024 00:26:29 -0800 Subject: [PATCH] Makes button not crazy when you select a bunch of clients. --- src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs b/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs index 1715ff95..c6d5a339 100644 --- a/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs +++ b/src/cljs/auto_ap/views/pages/ledger/profit_and_loss.cljs @@ -264,9 +264,12 @@ NOTE: Please review the transactions we may have question for you here: https:// [:div.level-left [:div.level-item [buttons/dropdown {:on-click (fn [] (reset! active :clients))} - [:span (str "Companies" - (when-let [clients (:clients data)] - (str " (" (str/join ", " (map (comp :name :client) clients)) ")")))]] + [:span {:style {"max-width" "30em" + "overflow" "hidden" + "text-overflow" "ellipsis"}} + (str "Companies" + (when-let [clients (:clients data)] + (str " (" (str/join ", " (map (comp :name :client) clients)) ")")))]] [report-control-detail {:active active :box !box :which :clients} [:div {:style {:width "20em"}} [:h4.subtitle "Companies"]