Skip to content

Commit 57567ba

Browse files
author
awb99
committed
ui
1 parent 7a4c533 commit 57567ba

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

demo/src/demo/page/quanta.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
:spec
1717
["EUR/USD" "USD/CHF" "GBP/USD" "USD/SEK" "USD/NOK" "USD/CAD" "USD/JPY"
1818
"AUD/USD" "NZD/USD" "USD/MXN" "USD/ZAR" "EUR/JPY" "EUR/CHF" "EUR/GBP" "GBP/JPY"]}
19-
{:type :select :path [2 :trailing-n], :name "DailyLoad#", :spec [2 5 10 20 30 50 80 100 120 150]}
19+
{:type :select :path [2 :trailing-n], :name "trailing#", :spec [2 5 10 20 30 50 80 100 120 150]}
2020
{:type :select :path [2 :atr-n], :name "dATR#", :spec [5 10 20 30]}
2121
{:type :select :path [2 :percentile], :name "dPercentile", :spec [10 20 30 40 50 60 70 80 90]}
2222
{:type :select :path [2 :step], :name "dStep", :spec [0.001 1.0E-4 4.0E-5]}

resources/public/options/options.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
display: grid;
1414
gap: "1rem";
1515
grid-template-columns: repeat(auto-fit, 100px 200px ); /* minmax(200px,1fr) */
16-
grid-template-rows: repeat(auto-fill, 30px);
16+
grid-template-rows: repeat(14px);
1717
grid-auto-flow: row;
1818

1919
}

src/options/core.cljs

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
(defn create-edit-element [{:keys [set-fn get-fn]} {:keys [path name type] :as options}]
2727
(let [editor (get-editor type)]
2828
[:<>
29-
[:span name] ; <label for= "pet-select" >Choose a pet:</label>
29+
[:span
30+
{:style {:text-overflow "ellipsis"
31+
:overflow "hidden"
32+
:display "inline-block"}}
33+
34+
name] ; <label for= "pet-select" >Choose a pet:</label>
3035
[editor {:set-fn (partial set-fn path)
3136
:options options}
3237
(get-fn path)]]))

0 commit comments

Comments
 (0)