Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(code-snippet): remove min-width rules for improved responsiveness #7420

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@

display: flex;
align-items: center;
min-width: rem(320px);
max-width: rem(760px);
height: $carbon--spacing-08;
padding-right: $carbon--spacing-08;
Expand Down Expand Up @@ -164,7 +163,6 @@
@include bx--snippet;

display: flex;
min-width: rem(320px);
max-width: 100%;
padding: $carbon--spacing-05;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export const inline = () => (
);

export const multiline = () => (
<div style={{ width: '50%' }}>
<CodeSnippet {...props()} type="multi" feedback="Copied to clipboard">
{` "scripts": {
<CodeSnippet {...props()} type="multi" feedback="Copied to clipboard">
{` "scripts": {
"build": "lerna run build --stream --prefix --npm-client yarn",
"ci-check": "carbon-cli ci-check",
"clean": "lerna run clean && lerna clean --yes && rimraf node_modules",
Expand Down Expand Up @@ -61,8 +60,7 @@ export const multiline = () => (
"@babel/preset-react": "^7.10.0",
"@babel/runtime": "^7.10.0",
"@commitlint/cli": "^8.3.5",`}
</CodeSnippet>
</div>
</CodeSnippet>
);

export const singleline = () => (
Expand Down