فهرست منبع

add description to settings headers

yoyurec 2 سال پیش
والد
کامیت
912e925448
2فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 4 1
      src/main/frontend/components/plugins.css
  2. 3 2
      src/main/frontend/components/plugins_settings.cljs

+ 4 - 1
src/main/frontend/components/plugins.css

@@ -494,8 +494,11 @@
 
 
       .heading-item {
       .heading-item {
         margin: 12px 12px 6px;
         margin: 12px 12px 6px;
-        font-weight: bold;
         border-bottom: 1px solid var(--ls-border-color, #738694);
         border-bottom: 1px solid var(--ls-border-color, #738694);
+
+        > h2 {
+          font-weight: bold;
+        }
       }
       }
 
 
       .desc-item {
       .desc-item {

+ 3 - 2
src/main/frontend/components/plugins_settings.cljs

@@ -80,11 +80,12 @@
     [:div.pl-1 (edit-settings-file pid nil)]]])
     [:div.pl-1 (edit-settings-file pid nil)]]])
 
 
 (rum/defc render-item-heading
 (rum/defc render-item-heading
-  [{:keys [key title]}]
+  [{:keys [key title description]}]
 
 
   [:div.heading-item
   [:div.heading-item
    {:data-key key}
    {:data-key key}
-   [:h2 title]])
+   [:h2 title]
+   [:small.pl-1.flex-1 description]])
 
 
 (rum/defc settings-container
 (rum/defc settings-container
   [schema ^js pl]
   [schema ^js pl]