sou 7 年 前
コミット
5222cd011c
2 ファイル変更13 行追加3 行削除
  1. 1 1
      lib/views/admin/global-notification.html
  2. 12 2
      resource/styles/scss/_admin.scss

+ 1 - 1
lib/views/admin/global-notification.html

@@ -23,7 +23,7 @@
     {% set detailPageUrl = '/admin/global-notification/detail' %}
     {% for globalNotif in globalNotifications %}
     <tr class="clickable-row" data-href="{{ detailPageUrl }}" data-updatepost-id="{{ globalNotif._id.toString() }}">
-      <td class="unclickable">
+      <td class="unclickable align-middle">
         <label class="switch">
           <input type="checkbox" class="isEnabledToggle" {% if globalNotif.isEnabled %}checked{% endif %}>
           <span class="slider round"></span>

+ 12 - 2
resource/styles/scss/_admin.scss

@@ -43,8 +43,18 @@
   }
 
   .admin-notification {
-    .clickable-row > :not(.unclickable) {
-      cursor: pointer;
+    .clickable-row {
+      .unclickable {
+        text-align: center;
+        vertical-align: middle;
+        width: 50px;
+        label.switch {
+          margin: 0;
+        }
+      }
+      :not(.unclickable) {
+        cursor: pointer;
+      }
     }
 
     /* slider checkbox */