mirror of https://github.com/go-gitea/gitea
Migrate `gt-hidden` to `tw-hidden` (#30046)
We have to define this one in helpers.css because tailwind only generates a single class but certain things rely on this being double-class. Command ran: ```sh perl -p -i -e 's#gt-hidden#tw-hidden#g' web_src/js/**/* templates/**/* models/**/* web_src/css/**/* --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>pull/29990/head^2
parent
0a2f973de9
commit
ec3d467f15
@ -1,4 +1,4 @@ |
|||||||
<div class="field {{if not .item.VisibleOnForm}}gt-hidden{{end}}"> |
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}"> |
||||||
{{template "repo/issue/fields/header" .}} |
{{template "repo/issue/fields/header" .}} |
||||||
<input type="{{if .item.Validations.is_number}}number{{else}}text{{end}}" name="form-field-{{.item.ID}}" placeholder="{{.item.Attributes.placeholder}}" value="{{.item.Attributes.value}}" {{if .item.Validations.required}}required{{end}} {{if .item.Validations.regex}}pattern="{{.item.Validations.regex}}" title="{{.item.Validations.regex}}"{{end}}> |
<input type="{{if .item.Validations.is_number}}number{{else}}text{{end}}" name="form-field-{{.item.ID}}" placeholder="{{.item.Attributes.placeholder}}" value="{{.item.Attributes.value}}" {{if .item.Validations.required}}required{{end}} {{if .item.Validations.regex}}pattern="{{.item.Validations.regex}}" title="{{.item.Validations.regex}}"{{end}}> |
||||||
</div> |
</div> |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
<div class="field {{if not .item.VisibleOnForm}}gt-hidden{{end}}"> |
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}}"> |
||||||
<div>{{RenderMarkdownToHtml .Context .item.Attributes.value}}</div> |
<div>{{RenderMarkdownToHtml .Context .item.Attributes.value}}</div> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue