浏览代码

enhance: limit height for both form input and select

Tienson Qin 2 年之前
父节点
当前提交
c593237b02
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      src/main/frontend/components/property.css
  2. 1 1
      src/main/frontend/components/property/value.cljs

+ 5 - 0
src/main/frontend/components/property.css

@@ -1,5 +1,10 @@
 .property-configure {
 .property-configure {
     min-width: 32rem;
     min-width: 32rem;
+
+    .form-input, .form-select {
+        line-height: 1rem;
+        padding: 0.25rem 0.5rem;
+    }
 }
 }
 
 
 .property-value-content {
 .property-value-content {

+ 1 - 1
src/main/frontend/components/property/value.cljs

@@ -57,7 +57,7 @@
                  (tc/to-local-date value))]
                  (tc/to-local-date value))]
     (ui/dropdown
     (ui/dropdown
      (fn [{:keys [toggle-fn]}]
      (fn [{:keys [toggle-fn]}]
-       [:a
+       [:a.flex
         {:tabIndex "0"
         {:tabIndex "0"
          :on-click toggle-fn
          :on-click toggle-fn
          :on-key-down (fn [e]
          :on-key-down (fn [e]