Copilot commented on code in PR #3152: URL: https://github.com/apache/apisix-dashboard/pull/3152#discussion_r2234042021
########## src/styles/global.css: ########## @@ -12,3 +12,42 @@ .monaco-editor { padding-bottom: 200px; } + +.editor-wrapper { + border: 1px solid var(--mantine-color-gray-4); + border-radius: var(--mantine-radius-sm); + position: relative; + height: 100%; + + &:focus-within { + border-color: var(--mantine-color-blue-6); + } +} + +.editor-wrapper--disabled { + background-color: var(--mantine-color-gray-0); + border-color: var(--mantine-color-gray-3); + cursor: not-allowed !important; Review Comment: There is trailing whitespace after the semicolon on this line. ########## src/components/form-slice/FormItemPlugins/PluginEditorDrawer.tsx: ########## @@ -44,7 +44,7 @@ export const PluginEditorDrawer = (props: PluginEditorDrawerProps) => { const methods = useForm<{ config: string }>({ criteriaMode: 'all', disabled: mode === 'view', - defaultValues: { config: toConfigStr(plugin) }, + defaultValues: { config: toConfigStr(config) }, Review Comment: The variable 'config' is used but not defined in this scope. It should be 'plugin' instead, as shown in the destructuring on line 42. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org