@@ -39,7 +39,7 @@ func (Renderer) SanitizerRules() []setting.MarkupSanitizerRule {
3939 {Element : "table" , AllowAttr : "class" , Regexp : regexp .MustCompile (`data-table` )},
4040 {Element : "th" , AllowAttr : "class" , Regexp : regexp .MustCompile (`line-num` )},
4141 {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 ` )},
4343 {Element : "a" , AllowAttr : "href" , Regexp : regexp .MustCompile (`\?display=source` )},
4444 }
4545}
@@ -134,7 +134,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
134134 locale := ctx .Ctx .Value (translation .ContextKey ).(translation.Locale )
135135
136136 // 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>`
138138
139139 // Write the HTML string to the output
140140 if _ , err := warnBlock .WriteString (warn ); err != nil {
0 commit comments