Skip to content

Commit c4bd192

Browse files
authored
Left align code block text on the no data setup screen (#2977)
1 parent 04f3bac commit c4bd192

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

webview/src/shared/components/codeBlock/styles.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.codeBlock {
2+
text-align: left;
23
padding: 10px;
34
width: max-content;
45
min-width: 500px;

webview/src/shared/components/codeSlider/styles.module.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,3 @@
99
margin: 0 auto;
1010
}
1111
}
12-
13-
.codeBlock {
14-
text-align: left;
15-
margin-top: 20px;
16-
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Story, Meta } from '@storybook/react/types-6-0'
2+
import React from 'react'
3+
import { NoData as SetupNoData } from '../getStarted/components/NoData'
4+
5+
import './test-vscode-styles.scss'
6+
import '../shared/style.scss'
7+
8+
export default {
9+
args: {
10+
data: {}
11+
},
12+
component: SetupNoData,
13+
title: 'Setup'
14+
} as Meta
15+
16+
const Template: Story = () => {
17+
return <SetupNoData />
18+
}
19+
20+
export const NoData = Template.bind({})

0 commit comments

Comments
 (0)