Skip to content

Commit

Permalink
fix(Carbon.js): Responsive design at the largest font size (#1337)
Browse files Browse the repository at this point in the history
The code should not overflow on mobile when using the largest font size.
  • Loading branch information
hatsu38 authored Feb 19, 2022
1 parent bc53bb9 commit 5153350
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/Carbon.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ class Carbon extends React.PureComponent {
.container :global([contenteditable='true']) {
user-select: text;
}
.container {
max-width: 480px;
}
}
.section,
Expand All @@ -365,6 +368,7 @@ class Carbon extends React.PureComponent {
justify-content: center;
align-items: center;
overflow: hidden;
max-width: 100%;
}
`}
</style>
Expand Down

0 comments on commit 5153350

Please sign in to comment.