From 503ba8a1d08a466613941d1b78d6cf7447f0f389 Mon Sep 17 00:00:00 2001 From: Swonkie <3949813+Swonkie@users.noreply.github.com> Date: Tue, 13 Jan 2026 13:52:13 +0100 Subject: [PATCH 1/2] [bugfix] #1874 Add Bootstrap form style for CodeMirror editor Fix a bug in the Search/Replace form of the CodeMirror editor, caused by an unwanted style which Bootstrap applied. The bug makes it difficult to select some elements of the Search/Replace dialog. Related issue: https://github.com/gchq/CyberChef/issues/1874 --- src/web/stylesheets/utils/_overrides.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/web/stylesheets/utils/_overrides.css b/src/web/stylesheets/utils/_overrides.css index a2f8b0292..be2e87149 100755 --- a/src/web/stylesheets/utils/_overrides.css +++ b/src/web/stylesheets/utils/_overrides.css @@ -249,6 +249,13 @@ optgroup { } +/* Bootstrap form inside CodeMirror editor */ + +.cm-panel > .bmd-form-group { + padding-top: 0; +} + + /* CodeMirror */ .ΝΌ2 .cm-specialChar, From 54b1380273b68839c987857b70ff487ca215bc00 Mon Sep 17 00:00:00 2001 From: Swonkie <3949813+Swonkie@users.noreply.github.com> Date: Tue, 13 Jan 2026 14:03:07 +0100 Subject: [PATCH 2/2] Add two spaces to conform to style guides --- src/web/stylesheets/utils/_overrides.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/stylesheets/utils/_overrides.css b/src/web/stylesheets/utils/_overrides.css index be2e87149..fec7d8571 100755 --- a/src/web/stylesheets/utils/_overrides.css +++ b/src/web/stylesheets/utils/_overrides.css @@ -252,7 +252,7 @@ optgroup { /* Bootstrap form inside CodeMirror editor */ .cm-panel > .bmd-form-group { - padding-top: 0; + padding-top: 0; }