浏览代码

Change the color of the report button

Visman 4 年之前
父节点
当前提交
fa6cb59778
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 2
      app/Models/Pages/Report.php
  2. 2 1
      public/style/ForkBB/style.css

+ 2 - 2
app/Models/Pages/Report.php

@@ -48,7 +48,7 @@ class Report extends Page
             ])->addRules([
                 'token'       => 'token:ReportPost',
                 'reason'      => 'required|string:trim,linebreaks|max:65000 bytes',
-                'submit'      => 'required|string',
+                'report'      => 'required|string',
             ])->addAliases([
                 'reason'      => 'Reason',
             ])->addArguments([
@@ -141,7 +141,7 @@ class Report extends Page
                 ],
             ],
             'btns'   => [
-                'submit' => [
+                'report' => [
                     'type'      => 'submit',
                     'value'     => __('Submit'),
 //                    'accesskey' => 's',

+ 2 - 1
public/style/ForkBB/style.css

@@ -617,7 +617,8 @@ body,
   width: 100%;
 }
 
-#fork .f-fdiv .f-btn[name=delete] {
+#fork .f-fdiv .f-btn[name="delete"],
+#fork .f-fdiv .f-btn[name="report"] {
   color: red;
 }