diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md
index fa56be7c2e..59dd4df1b3 100644
--- a/ui/CHANGELOG.md
+++ b/ui/CHANGELOG.md
@@ -2,6 +2,14 @@
All notable changes to the **Prowler UI** are documented in this file.
+## [1.25.3] (Prowler UNRELEASED)
+
+### 🐞 Fixed
+
+- CLI command in the finding drawer no longer renders the line-number gutter, matching the original styled block while removing the leading `1` [(#11059)](https://github.com/prowler-cloud/prowler/pull/11059)
+
+---
+
## [1.25.2] (Prowler v5.25.2)
### 🔄 Changed
diff --git a/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx b/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx
index 2004402607..cd68b2d34b 100644
--- a/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx
+++ b/ui/components/findings/table/resource-detail-drawer/resource-detail-drawer-content.test.tsx
@@ -219,21 +219,25 @@ vi.mock("@/components/shared/query-code-editor", () => ({
language,
value,
copyValue,
+ showLineNumbers = true,
}: {
ariaLabel: string;
language?: string;
value: string;
copyValue?: string;
+ showLineNumbers?: boolean;
}) => (
{ariaLabel}
{value}
)}
diff --git a/ui/components/shared/query-code-editor.tsx b/ui/components/shared/query-code-editor.tsx
index b379781b05..d6ec599e4f 100644
--- a/ui/components/shared/query-code-editor.tsx
+++ b/ui/components/shared/query-code-editor.tsx
@@ -10,8 +10,6 @@ import { EditorState } from "@codemirror/state";
import { tags } from "@lezer/highlight";
import CodeMirror, {
EditorView,
- highlightActiveLineGutter,
- lineNumbers,
placeholder as codeEditorPlaceholder,
} from "@uiw/react-codemirror";
import { Check, Copy } from "lucide-react";
@@ -1177,6 +1175,7 @@ interface QueryCodeEditorProps
editable?: boolean;
minHeight?: number;
showCopyButton?: boolean;
+ showLineNumbers?: boolean;
onChange: (value: string) => void;
onBlur?: () => void;
}
@@ -1195,6 +1194,7 @@ export const QueryCodeEditor = ({
editable = true,
minHeight = 320,
showCopyButton = false,
+ showLineNumbers = true,
onChange,
onBlur,
...props
@@ -1208,8 +1208,6 @@ export const QueryCodeEditor = ({
: lightHighlightStyle;
const extensions = [
- lineNumbers(),
- highlightActiveLineGutter(),
EditorView.lineWrapping,
codeEditorPlaceholder(placeholder ?? ""),
EditorView.contentAttributes.of({
@@ -1260,6 +1258,7 @@ export const QueryCodeEditor = ({