fix(config): questionborderradius* are CSS lengths, not durations
The four questionborderradiusTL/TR/BL/BR options were declared type="duration" but their values are border-radius lengths (default 5px, emitted into border-radius in custom_header.twig and validated against ^[0-9]+([.][0-9]+)?(px|rem)$). That made the _formats hint say "duration in seconds, e.g. 300" — wrong. Type is now "text" and the format hint reads "CSS length in px or rem, e.g. 5px (border-radius; NOT seconds)". Variants rebuilt (build_all.sh --rebuild); labels.csv unchanged (titles untouched). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
aac20b729d
commit
3c807ca1b3
1 changed files with 8 additions and 5 deletions
|
|
@ -59,7 +59,10 @@ if (!function_exists('option_format_hint')) {
|
|||
return "off | theme-relative image path, e.g. ./files/logo.png (gif|ico|jpg|jpeg|png only — SVG is rejected)";
|
||||
}
|
||||
if ($type === 'text') {
|
||||
if (preg_match('/margin|height|radius/i', $key)) {
|
||||
if (preg_match('/radius/i', $key)) {
|
||||
return "CSS length in px or rem, e.g. 5px (border-radius; NOT seconds)";
|
||||
}
|
||||
if (preg_match('/margin|height/i', $key)) {
|
||||
return "plain px number, e.g. 15 (margins 0-100)";
|
||||
}
|
||||
if (preg_match('/distance/i', $key)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue