fix style error

This commit is contained in:
邱博亞 2022-05-20 13:18:25 +08:00
parent 0046efcd4a
commit 8b0a730f6a
5 changed files with 14 additions and 2 deletions

View File

@ -40,4 +40,5 @@ class AskCategorySetting
field :custom_fields, type: Hash,default: {} field :custom_fields, type: Hash,default: {}
field :usage_rule field :usage_rule
field :category_id field :category_id
field :title_layout
end end

View File

@ -43,6 +43,7 @@ class AskSetting
field :custom_fields, type: Hash,default: {} field :custom_fields, type: Hash,default: {}
field :usage_rule field :usage_rule
field :title_layout
def get_attrs def get_attrs
attrs = self.attributes.clone attrs = self.attributes.clone
self.fields.each do |k, v| self.fields.each do |k, v|

View File

@ -15,6 +15,10 @@
tr.custom_field td:nth-child(1){ tr.custom_field td:nth-child(1){
text-align: left; text-align: left;
} }
thead th:last-child{
text-align: left;
padding-left: 10em;
}
td{ td{
padding: 0.5em; padding: 0.5em;
} }
@ -29,7 +33,7 @@
flex-wrap: wrap; flex-wrap: wrap;
} }
.center .tab-panel{ .center .tab-panel{
justify-content: center; justify-content: start;
} }
tr.custom_field { tr.custom_field {
border: 0.1em solid #8e00ff; border: 0.1em solid #8e00ff;
@ -160,7 +164,7 @@
<td> <td>
<%= t("ask.usage_rule") %> <%= t("ask.usage_rule") %>
</td> </td>
<td colspan="2" style="width: 0;overflow: overlay;"> <td colspan="2">
<%= f.text_area "usage_rule",class: 'ckeditor' %> <%= f.text_area "usage_rule",class: 'ckeditor' %>
</td> </td>
</tr> </tr>

View File

@ -2,6 +2,9 @@ en:
situation: Situation situation: Situation
sex: Sex sex: Sex
ask: ask:
title_layout: Title layout
single_column: Single Column in One Row
two_column: Two Column in One Row
please_check_email_format: "Please check email format!" please_check_email_format: "Please check email format!"
enable: Enable enable: Enable
email_regex: Email validation regex email_regex: Email validation regex

View File

@ -6,6 +6,9 @@ zh_tw:
errors: errors:
verification_failed: 驗證碼錯誤 verification_failed: 驗證碼錯誤
ask: ask:
title_layout: 題目樣式
single_column: 單欄式
two_column: 兩欄式
please_check_email_format: "請檢察email是否正確!" please_check_email_format: "請檢察email是否正確!"
enable: 啟用 enable: 啟用
email_regex: Email驗證regex email_regex: Email驗證regex