 ;; Info table component
 
 (defn form-info-table-header [headers]
-  (let [el-style {:height "20px"}]
-    (table-header
-      {:key               "th"
-       :displaySelectAll  false
-       :adjustForCheckbox false
-       :style             {:border "none"}}
-      (table-row
-        {:key           "tr"
-         :displayBorder false
-         :style         el-style}
-        (map-indexed
-          (fn [index header]
-            (table-header-column
-              {:key   (str "thc-" index)
-               :style el-style}
-              (:name header))) headers)
-        (table-header-column
-          {:key   "thc"
-           :style el-style} "")))))
+  (table-header
+    {:key               "th"
+     :displaySelectAll  false
+     :adjustForCheckbox false
+     :style             {:border "none"}}
+    (table-row
+      {:key           "tr"
+       :displayBorder false
+       :style         {:height "20px"}}
+      (map-indexed
+        (fn [index header]
+          (table-header-column
+            {:key   (str "thc-" index)
+             :style {:height "20px"}}
+            (:name header))) headers)
+      (table-header-column
+        {:key   "thc"
+         :style {:height "20px"
+                 :width  "100%"}} ""))))
 
 (defn form-info-table-body [items render-item-fn render-items-key]
-  (let [el-style {:height "20px"}]
-    (table-body
-      {:key                "tb"
-       :showRowHover       true
-       :displayRowCheckbox false}
-      (map-indexed
-        (fn [index item]
-          (table-row
-            {:key           (str "tr-" index)
-             :rowNumber     index
-             :displayBorder false
-             :style         el-style}
-            (->> (select-keys* item render-items-key)
-                 (map-indexed
-                   (fn [coll-index coll]
-                     (table-row-column
-                       {:key   (str "trc-" index "-" coll-index)
-                        :style el-style}
-                       (render-item-fn coll item)))))
-            (table-header-column
-              {:key   (str "trc-" index)
-               :style el-style} ""))) items))))
+  (table-body
+    {:key                "tb"
+     :showRowHover       true
+     :displayRowCheckbox false}
+    (map-indexed
+      (fn [index item]
+        (table-row
+          {:key           (str "tr-" index)
+           :rowNumber     index
+           :displayBorder false
+           :style         {:height "20px"}}
+          (->> (select-keys* item render-items-key)
+               (map-indexed
+                 (fn [coll-index coll]
+                   (table-row-column
+                     {:key   (str "trc-" index "-" coll-index)
+                      :style {:height "20px"}}
+                     (render-item-fn coll item)))))
+          (table-header-column
+            {:key   (str "trc-" index)
+             :style {:height "20px"
+                     :width  "100%"}} ""))) items)))
 
 (defn form-info-table [headers items render-item-fn render-items-key]
   (mui
     (table
       {:key   "tbl"
-       :style {:tableLayout "auto"
-               :width       "auto"}}
+       :style {:tableLayout "auto"}}
       (form-info-table-header headers)
       (form-info-table-body items render-item-fn render-items-key))))
 

  [headers]
  (table-header
    {:key               "th"
     :style             {:backgroundColor "rgb(245, 245, 245)"}
     :displaySelectAll  false
     :adjustForCheckbox false}
    (table-row

    (map-indexed
      (fn [index item]
        (table-row
          {:key           (str "tr-" (hash item))
           :style         (merge
                            {:height "30px"}
                            (when clickable? {:cursor "pointer"}))
           :displayBorder false
           :rowNumber     index}
          (->> (select-keys* item render-items-key)
               (map-indexed
                 (fn [coll-index coll]
                   (table-row-column
                     {:key   (str "trc-" index "-" coll-index)
                      :style {:height "30px"}}
                     (render-item-fn coll item)))))
          (table-row-column
            {:key   (str "trc-" index)
             :style {:height "30px"
                     :width  "100%"}} ""))) items)))

(defn list-table-auto
  [headers items render-item-fn render-items-key onclick-handler-fn]
