Browse Source

style: set small text when editing in table cell

Tienson Qin 5 months ago
parent
commit
0059b6bbd6
2 changed files with 9 additions and 4 deletions
  1. 4 4
      src/main/frontend/components/views.cljs
  2. 5 0
      src/main/frontend/components/views.css

+ 4 - 4
src/main/frontend/components/views.cljs

@@ -260,12 +260,12 @@
                         (let [popup (fn []
                                       (let [width (-> (max 160 width) (- 18))]
                                         (if many?
-                                          [:div.ls-table-block.flex.flex-row.items-start
-                                           {:style {:width width :max-width width :margin-right "6px"}
+                                          [:div.ls-table-block
+                                           {:style {:width width :max-width width}
                                             :on-click util/stop-propagation}
                                            (pv/property-value row property {})]
-                                          [:div.ls-table-block.flex.flex-row.items-start
-                                           {:style {:width width :max-width width :margin-right "6px"}
+                                          [:div.ls-table-block
+                                           {:style {:width width :max-width width}
                                             :on-click util/stop-propagation}
                                            (block-container
                                             {:popup? true

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

@@ -15,3 +15,8 @@
 .group-list-view div[data-testid='virtuoso-item-list'] div[data-testid='virtuoso-item-list'] {
     @apply gap-0;
 }
+
+.ls-table-block {
+    @apply flex flex-row items-start text-sm;
+    margin-right: 6px;
+}