diff --git a/library/package.json b/library/package.json index ff6f9f992..97855912b 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/react-component", - "version": "2.4.0", + "version": "2.4.1", "private": false, "description": "A React component for AsyncAPI specification.", "repository": { diff --git a/library/src/containers/AsyncApi/Layout.tsx b/library/src/containers/AsyncApi/Layout.tsx index 5bf6bac38..3a6a6702f 100644 --- a/library/src/containers/AsyncApi/Layout.tsx +++ b/library/src/containers/AsyncApi/Layout.tsx @@ -35,7 +35,7 @@ const AsyncApiLayout: React.FunctionComponent = ({ } const possibleClassName = - width <= 1280 ? 'container:xl' : 'container:base'; + width <= 1536 ? 'container:xl' : 'container:base'; if (possibleClassName !== observerClassName) { setObserverClassName(possibleClassName); } diff --git a/library/src/containers/Sidebar/Sidebar.tsx b/library/src/containers/Sidebar/Sidebar.tsx index fe313624e..2cf45b6f5 100644 --- a/library/src/containers/Sidebar/Sidebar.tsx +++ b/library/src/containers/Sidebar/Sidebar.tsx @@ -348,7 +348,13 @@ const OperationItem: React.FunctionComponent = ({ config, isAsyncAPIv2, }); - const bgColors = ['bg-red-600', 'bg-orange-600', 'bg-green-600']; + const bgColors = [ + 'bg-red-600', + 'bg-orange-600', + 'bg-green-600', + 'bg-blue-600', + ]; + return (