@@ -39,7 +39,7 @@ func (Renderer) SanitizerRules() []setting.MarkupSanitizerRule {
39
39
{Element : "table" , AllowAttr : "class" , Regexp : regexp .MustCompile (`data-table` )},
40
40
{Element : "th" , AllowAttr : "class" , Regexp : regexp .MustCompile (`line-num` )},
41
41
{Element : "td" , AllowAttr : "class" , Regexp : regexp .MustCompile (`line-num` )},
42
- {Element : "div" , AllowAttr : "class" , Regexp : regexp .MustCompile (`ui top attached warning message ` )},
42
+ {Element : "div" , AllowAttr : "class" , Regexp : regexp .MustCompile (`tw-flex tw-justify-center tw-items-center ` )},
43
43
{Element : "a" , AllowAttr : "href" , Regexp : regexp .MustCompile (`\?display=source` )},
44
44
}
45
45
}
@@ -134,7 +134,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
134
134
locale := ctx .Ctx .Value (translation .ContextKey ).(translation.Locale )
135
135
136
136
// Construct the HTML string
137
- warn := `<div class="ui top attached warning message" tabindex="0"> ` + locale .TrString ("repo.file_too_large" ) + ` <b>< a class="source" href="?display=source">` + locale .TrString ("repo.file_view_source" ) + `</a></b ></div>`
137
+ warn := `<div class="tw-flex tw-justify-center tw-items-center"><div> ` + locale .TrString ("repo.file_too_large" ) + ` <a class="source" href="?display=source">` + locale .TrString ("repo.file_view_source" ) + `</a></div ></div>`
138
138
139
139
// Write the HTML string to the output
140
140
if _ , err := warnBlock .WriteString (warn ); err != nil {
0 commit comments