From 014817810dc3b6ba2da67441b0744b013d6d6616 Mon Sep 17 00:00:00 2001 From: Abhishek S Lal Date: Mon, 15 Dec 2025 19:32:57 +0530 Subject: [PATCH] Fix/response pane optimizations (#6395) * refactor: update content type detection to use base64 decoding * fix: some styling issues and autofocus issues in input resolved * refactor: enhance ResponsePane and QueryResult components for improved response handling and size display * refactor: simplify size display logic in ResponseSize component * refactor: improve size formatting logic in ResponseSize component for better readability * refactor: enhance base64 decoding function to handle invalid input and improve error handling --- .../bruno-app/src/components/Cookies/index.js | 1 + .../QueryResultPreview/XmlPreview/index.js | 12 +++- .../ResponsePane/QueryResult/index.js | 51 ++++------------ .../src/components/ResponsePane/index.js | 11 ++-- .../src/components/SearchInput/index.js | 1 + .../Collections/CollectionSearch/index.js | 1 + .../bruno-app/src/utils/response/index.js | 61 +++++++++++++++++++ 7 files changed, 90 insertions(+), 48 deletions(-) diff --git a/packages/bruno-app/src/components/Cookies/index.js b/packages/bruno-app/src/components/Cookies/index.js index c5138bcbb..19d193945 100644 --- a/packages/bruno-app/src/components/Cookies/index.js +++ b/packages/bruno-app/src/components/Cookies/index.js @@ -137,6 +137,7 @@ const CollectionProperties = ({ onClose }) => { value={searchText || ''} onChange={(e) => setSearchText(e.target.value)} className="block textbox non-passphrase-input ml-auto font-normal" + autoFocus />