Skip to content

Commit

Permalink
fix(react-components): Restrict max width of help panel (#4940)
Browse files Browse the repository at this point in the history
* fix(react-components): Restrict max width of help panel

* chore: add note on choice
  • Loading branch information
haakonflatval-cognite authored Dec 11, 2024
1 parent f129d29 commit bb694a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cognite/reveal-react-components",
"version": "0.73.7",
"version": "0.73.8",
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions react-components/src/components/RevealToolbar/HelpButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ const StyledContainer = styled.div`
flex-direction: row;
gap: 24px;
padding: 16px;
width: fit-content;
max-width: fit-content;
// Width of help panel content sums to 1000. Would probably be better if it scaled to screen size
max-width: 1000px;
`;

0 comments on commit bb694a9

Please sign in to comment.