Skip to content

Commit

Permalink
ui
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Oct 25, 2024
1 parent 7a4c533 commit 57567ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/src/demo/page/quanta.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:spec
["EUR/USD" "USD/CHF" "GBP/USD" "USD/SEK" "USD/NOK" "USD/CAD" "USD/JPY"
"AUD/USD" "NZD/USD" "USD/MXN" "USD/ZAR" "EUR/JPY" "EUR/CHF" "EUR/GBP" "GBP/JPY"]}
{:type :select :path [2 :trailing-n], :name "DailyLoad#", :spec [2 5 10 20 30 50 80 100 120 150]}
{:type :select :path [2 :trailing-n], :name "trailing#", :spec [2 5 10 20 30 50 80 100 120 150]}
{:type :select :path [2 :atr-n], :name "dATR#", :spec [5 10 20 30]}
{:type :select :path [2 :percentile], :name "dPercentile", :spec [10 20 30 40 50 60 70 80 90]}
{:type :select :path [2 :step], :name "dStep", :spec [0.001 1.0E-4 4.0E-5]}
Expand Down
2 changes: 1 addition & 1 deletion resources/public/options/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
display: grid;
gap: "1rem";
grid-template-columns: repeat(auto-fit, 100px 200px ); /* minmax(200px,1fr) */
grid-template-rows: repeat(auto-fill, 30px);
grid-template-rows: repeat(14px);
grid-auto-flow: row;

}
Expand Down
7 changes: 6 additions & 1 deletion src/options/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
(defn create-edit-element [{:keys [set-fn get-fn]} {:keys [path name type] :as options}]
(let [editor (get-editor type)]
[:<>
[:span name] ; <label for= "pet-select" >Choose a pet:</label>
[:span
{:style {:text-overflow "ellipsis"
:overflow "hidden"
:display "inline-block"}}

name] ; <label for= "pet-select" >Choose a pet:</label>
[editor {:set-fn (partial set-fn path)
:options options}
(get-fn path)]]))
Expand Down

0 comments on commit 57567ba

Please sign in to comment.