From ca6c2ebb03b1be8a28a68b394ddacc57a374e3e1 Mon Sep 17 00:00:00 2001 From: Pragadesh-45 Date: Wed, 16 Oct 2024 13:00:00 +0530 Subject: [PATCH] style: add logic to handle different screen sizes --- .../GenerateCodeItem/StyledWrapper.js | 22 +++++++++++++++++++ .../CollectionItem/GenerateCodeItem/index.js | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/StyledWrapper.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/StyledWrapper.js index ca582a842..3d8ea1229 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/StyledWrapper.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/StyledWrapper.js @@ -35,6 +35,28 @@ const StyledWrapper = styled.div` background-color: ${(props) => props.theme.collection.environment.settings.item.active.hoverBg} !important; } } + + .flexible-container { + width: 100%; + } + + @media (max-width: 600px) { + .flexible-container { + width: 500px; + } + } + + @media (min-width: 601px) and (max-width: 1200px) { + .flexible-container { + width: 800px; + } + } + + @media (min-width: 1201px) { + .flexible-container { + width: 900px; + } + } `; export default StyledWrapper; diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js index cd99782d1..f7ce85023 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/GenerateCodeItem/index.js @@ -48,7 +48,7 @@ const GenerateCodeItem = ({ collection, item, onClose }) => { return ( -
+
{languages &&