fix: bda7c96df6
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-03-09 06:23:14 +08:00
parent bda7c96df6
commit 81aed1adc2
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -481,7 +481,7 @@ class HTML {
'span' => [
'class' => new CustomClassDef(['uoj-username'], ['uoj-username-']),
'data-realname' => 'Text',
'data-color' => 'Color',
'data-color' => 'Enum#' . implode(',', UOJUser::AVAILABLE_COLORS),
],
'img' => ['width' => 'Text'],
]);
@ -510,7 +510,7 @@ class HTML {
'del' => [],
'br' => [],
'span' => [
'class' => 'Enum#uoj-username,' . implode(',', array_map(fn ($c) => "uoj-username-{$c}", UOJUser::AVAILABLE_COLORS)),
'class' => new CustomClassDef(['uoj-username'], ['uoj-username-']),
'data-realname' => 'Text',
'data-color' => 'Enum#' . implode(',', UOJUser::AVAILABLE_COLORS),
],