Преглед изворни кода

fix(style): marker should be inline

Tienson Qin пре 5 година
родитељ
комит
baf308fc5b
2 измењених фајлова са 6 додато и 3 уклоњено
  1. 2 0
      resources/static/css/common.css
  2. 4 3
      src/main/frontend/components/hiccup.cljs

+ 2 - 0
resources/static/css/common.css

@@ -51,6 +51,7 @@
 
     --ls-primary-text-color: #24292e;
     --ls-secondary-text-color: #161e2e;
+    --ls-title-text-color: #222;
     --ls-link-text-color: #045591;
     --ls-link-text-hover-color: #000;
     --ls-link-ref-text-color: var(--ls-link-text-color);
@@ -1020,6 +1021,7 @@ a.login:hover {
 }
 
 .marker-switch {
+    display: inline;
     font-size: 85%;
     margin-right: 6px;
     margin-left: 2px;

+ 4 - 3
src/main/frontend/components/hiccup.cljs

@@ -767,8 +767,8 @@
                            [(str class " checked") true])]
     (when class
       (ui/checkbox {:class class
-                    :style {:margin-top -1
-                            :margin-right 6}
+                    :style {:margin-top -2
+                            :margin-right 5}
                     :checked checked?
                     :on-change (fn [_e]
                                  ;; FIXME: Log timestamp
@@ -881,7 +881,8 @@
           (when (and marker
                      (not (string/blank? marker))
                      (not= "nil" marker))
-            {:class (string/lower-case marker)})
+            {:class (str (string/lower-case marker)
+                         "flex flex-row items-center")})
           (when bg-color
             {:style {:background-color bg-color
                      :padding-left 6