diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js index 8bfbb075e..c2dfb3bdf 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSelector/index.js @@ -19,7 +19,7 @@ const EnvironmentSelector = ({ collection }) => { const Icon = forwardRef((props, ref) => { return (
- {activeEnvironment ? activeEnvironment.name : 'No Environment'} +

{activeEnvironment ? activeEnvironment.name : 'No Environment'}

); diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js index 330ae082c..dd9761532 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/StyledWrapper.js @@ -23,6 +23,10 @@ const StyledWrapper = styled.div` padding: 8px 10px; border-left: solid 2px transparent; text-decoration: none; + max-width: 200px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; &:hover { text-decoration: none; diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js index 4517bd8d3..079b57891 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js @@ -8,6 +8,7 @@ import ImportEnvironment from '../ImportEnvironment'; import ManageSecrets from '../ManageSecrets'; import StyledWrapper from './StyledWrapper'; import ConfirmSwitchEnv from './ConfirmSwitchEnv'; +import ToolHint from 'components/ToolHint'; const EnvironmentList = ({ selectedEnvironment, setSelectedEnvironment, collection, isModified, setIsModified }) => { const { environments } = collection; @@ -103,13 +104,15 @@ const EnvironmentList = ({ selectedEnvironment, setSelectedEnvironment, collecti {environments && environments.length && environments.map((env) => ( -
handleEnvironmentClick(env)} // Use handleEnvironmentClick to handle clicks - > - {env.name} -
+ +
handleEnvironmentClick(env)} // Use handleEnvironmentClick to handle clicks + > + {env.name} +
+
))}
handleCreateEnvClick()}> + Create diff --git a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js index a1099f4fd..1347c9029 100644 --- a/packages/bruno-app/src/components/RequestPane/QueryParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/QueryParams/index.js @@ -117,7 +117,6 @@ const QueryParams = ({ item, collection }) => {
Query
- { />
-
+
{
`} - infotipId="path-param-InfoTip" + infotipId="path-param-InfoTip" />
@@ -241,11 +240,7 @@ const QueryParams = ({ item, collection }) => { : null}
- {!(pathParams && pathParams.length) ? -
- -
- : null} + {!(pathParams && pathParams.length) ?
: null} ); diff --git a/packages/bruno-app/src/components/RequestTabPanel/index.js b/packages/bruno-app/src/components/RequestTabPanel/index.js index 944b686fc..4bcfff1c3 100644 --- a/packages/bruno-app/src/components/RequestTabPanel/index.js +++ b/packages/bruno-app/src/components/RequestTabPanel/index.js @@ -39,12 +39,15 @@ const RequestTabPanel = () => { const _collections = useSelector((state) => state.collections.collections); // merge `globalEnvironmentVariables` into the active collection and rebuild `collections` immer proxy object - let collections = produce(_collections, draft => { + let collections = produce(_collections, (draft) => { let collection = find(draft, (c) => c.uid === focusedTab?.collectionUid); if (collection) { // add selected global env variables to the collection object - const globalEnvironmentVariables = getGlobalEnvironmentVariables({ globalEnvironments, activeGlobalEnvironmentUid }); + const globalEnvironmentVariables = getGlobalEnvironmentVariables({ + globalEnvironments, + activeGlobalEnvironmentUid + }); const globalEnvSecrets = getGlobalEnvironmentVariablesMasked({ globalEnvironments, activeGlobalEnvironmentUid }); collection.globalEnvironmentVariables = globalEnvironmentVariables; collection.globalEnvSecrets = globalEnvSecrets;