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 :usage_rule
field :category_id
field :title_layout
end

View File

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

View File

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

View File

@ -2,6 +2,9 @@ en:
situation: Situation
sex: Sex
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!"
enable: Enable
email_regex: Email validation regex

View File

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