fix(widgets): drop 520px control width so expanded widgets stay in the sidebar column

WP core widgets.js applies a negative margin-left to widgets whose
control width exceeds 250px, pushing the form over the available
widgets list. Use the default width like the reference theme.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-30 14:13:38 +08:00
1 parent 05c7ade3f5
commit aa692f3c9f
1 file changed
+1 -2
+1 -2
View File
@@ -19,8 +19,7 @@ final class SchemaWidget extends \WP_Widget {
'classname' => 'aksrt-schema-widget aksrt-schema-widget--' . $definition->slug(),
'description' => $definition->description(),
'customize_selective_refresh' => true,
],
['width' => 520]
]
);
}