From dcbf38bf612afc6a880f804560502cd89c98e4f0 Mon Sep 17 00:00:00 2001 From: Chirag Chandrashekhar Date: Wed, 7 Jan 2026 07:40:58 +0530 Subject: [PATCH] fix: Query URL overflow pushes the action buttons outside view in gRPC and HTTP (#6706) - Updated the QueryUrl component to handle text overflow. Now, overflow triggers scroll and does not move the action buttons out of view. - Updated the GrpcQueryUrl component to handle text overflow. Now, overflow triggers scroll and does not move the action buttons out of view. --- .../RequestPane/GrpcQueryUrl/index.js | 209 +++++++++--------- .../components/RequestPane/QueryUrl/index.js | 95 ++++---- 2 files changed, 153 insertions(+), 151 deletions(-) diff --git a/packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js b/packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js index f82f5bb6a..447fb3c98 100644 --- a/packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js +++ b/packages/bruno-app/src/components/RequestPane/GrpcQueryUrl/index.js @@ -300,7 +300,7 @@ const GrpcQueryUrl = ({ item, collection, handleRun }) => { gRPC -
+
{ item={item} /> +
+ +
-
- + +
{ + e.stopPropagation(); + if (isReflectionMode) { + handleReflection(url, true); + } else if (protoFilePath) { + handleProtoFileLoad(protoFilePath, true); + } else { + toast.error('No proto file selected'); + } + }} + > + - -
{ - e.stopPropagation(); - if (isReflectionMode) { - handleReflection(url, true); - } else if (protoFilePath) { - handleProtoFileLoad(protoFilePath, true); - } else { - toast.error('No proto file selected'); - } - }} - > - - - {isReflectionMode ? 'Refresh server reflection' : 'Refresh proto file methods'} - -
- -
{ - e.stopPropagation(); - handleGrpcurl(url); - }} - > - - Generate grpcurl command -
- -
{ - e.stopPropagation(); - if (!item.draft) return; - onSave(); - }} - > - - - Save ({saveShortcut}) - -
- - {isConnectionActive && isStreamingMethod && ( -
-
- - Cancel -
- - {isClientStreamingMethod && ( -
- -
- )} -
- )} - - {(!isConnectionActive || !isStreamingMethod) && ( -
{ - e.stopPropagation(); - handleRun(e); - }} - > - -
- )} + + {isReflectionMode ? 'Refresh server reflection' : 'Refresh proto file methods'} +
+ +
{ + e.stopPropagation(); + handleGrpcurl(url); + }} + > + + Generate grpcurl command +
+ +
{ + e.stopPropagation(); + if (!item.draft) return; + onSave(); + }} + > + + + Save ({saveShortcut}) + +
+ + {isConnectionActive && isStreamingMethod && ( +
+
+ + Cancel +
+ + {isClientStreamingMethod && ( +
+ +
+ )} +
+ )} + + {(!isConnectionActive || !isStreamingMethod) && ( +
{ + e.stopPropagation(); + handleRun(e); + }} + > + +
+ )}
{isConnectionActive && isStreamingMethod && (
diff --git a/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js b/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js index 23da07519..c363150d0 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js +++ b/packages/bruno-app/src/components/RequestPane/QueryUrl/index.js @@ -375,7 +375,7 @@ const QueryUrl = ({ item, collection, handleRun }) => {
{ item={item} showNewlineArrow={true} /> -
-
{ - handleGenerateCode(e); - }} - > - - Generate Code -
-
{ - e.stopPropagation(); - if (!hasChanges) return; - onSave(); - }} - > - - - Save ({saveShortcut}) - -
- {isLoading || item.response?.stream?.running ? ( - - ) : ( - - )} + +
+
+
{ + handleGenerateCode(e); + }} + > + + Generate Code
+
{ + e.stopPropagation(); + if (!hasChanges) return; + onSave(); + }} + > + + + Save ({saveShortcut}) + +
+ {isLoading || item.response?.stream?.running ? ( + + ) : ( + + )}
{generateCodeItemModalOpen && (