Просмотр исходного кода

fix: empty button text font size

Tienson Qin 2 месяцев назад
Родитель
Сommit
5618d47454

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

@@ -53,9 +53,9 @@
                :else
                "Empty")]
     (if (= text "Empty")
-      (shui/button (merge {:class "empty-btn !text-base" :variant :text} opts)
+      (shui/button (merge {:class "empty-btn" :variant :text} opts)
                    text)
-      (shui/button (merge {:class "empty-btn !text-base" :variant :text} opts)
+      (shui/button (merge {:class "empty-btn" :variant :text} opts)
                    text))))
 
 (rum/defc property-empty-text-value

+ 4 - 0
src/main/frontend/components/property/value.css

@@ -45,3 +45,7 @@
   @apply border rounded pl-2;
   min-width: 3em;
 }
+
+.ls-properties-area .empty-btn {
+  @apply !text-base;
+}