1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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>
This commit is contained in:
silverwind
2024-03-24 19:23:38 +01:00
committed by GitHub
parent 0a2f973de9
commit ec3d467f15
82 changed files with 195 additions and 192 deletions

View File

@@ -1,5 +1,5 @@
{{$useMarkdownEditor := not .item.Attributes.render}}
<div class="field {{if not .item.VisibleOnForm}}gt-hidden{{end}} {{if $useMarkdownEditor}}combo-editor-dropzone{{end}}">
<div class="field {{if not .item.VisibleOnForm}}tw-hidden{{end}} {{if $useMarkdownEditor}}combo-editor-dropzone{{end}}">
{{template "repo/issue/fields/header" .}}
{{/* the real form element to provide the value */}}
@@ -7,7 +7,7 @@
{{if $useMarkdownEditor}}
{{template "shared/combomarkdowneditor" (dict
"ContainerClasses" "gt-hidden"
"ContainerClasses" "tw-hidden"
"MarkdownPreviewUrl" (print .root.RepoLink "/markup")
"MarkdownPreviewContext" .root.RepoLink
"TextareaContent" .item.Attributes.value
@@ -16,7 +16,7 @@
)}}
{{if .root.IsAttachmentEnabled}}
<div class="tw-mt-4 form-field-dropzone gt-hidden">
<div class="tw-mt-4 form-field-dropzone tw-hidden">
{{template "repo/upload" .root}}
</div>
{{end}}