Skip to content

Commit 6307178

Browse files
increased width size of the card
Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
1 parent 320a642 commit 6307178

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/webview/devfile-registry/app/cardItem.style.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default (theme: Theme) =>
104104
border: '1px solid',
105105
borderColor: 'inherit',
106106
maxHeight: '40rem',
107-
maxWidth: '50rem',
107+
width: '65rem',
108108
margin: 'auto',
109109
overflow: 'auto'
110110
},
@@ -127,13 +127,11 @@ export default (theme: Theme) =>
127127
marginTop: '0.5rem'
128128
},
129129
cardButton: {
130-
display: 'inline-block',
131-
marginTop: '0.3rem',
132-
marginBottom: '0.5rem'
130+
display: 'inline-block'
133131
},
134132
button: {
135-
width: '5rem',
136-
height: '2.5rem',
133+
width: 'auto',
134+
height: '2rem',
137135
textAlign: 'center',
138136
outline: '0.0625rem solid transparent',
139137
outlineOffset: '0.125rem!important',
@@ -176,8 +174,7 @@ export default (theme: Theme) =>
176174
color: 'var(--vscode-foreground)',
177175
backgroundColor: 'var(--vscode-editor-background)',
178176
height: 'auto',
179-
width: '40rem',
180-
zIndex: 1
177+
width: '65rem'
181178
},
182179
devPageCardHeader: {
183180
display: 'block',
@@ -189,9 +186,9 @@ export default (theme: Theme) =>
189186
backgroundColor: 'var(--vscode-editor-background)',
190187
fontSize: 'var(--vscode-font-size)',
191188
fontFamily: 'var(--vscode-font-family)',
192-
width: '39rem',
189+
width: '60rem',
193190
maxHeight: '18rem',
194-
overflow: 'hidden',
191+
overflow: 'auto',
195192
border: '1px solid',
196193
borderColor: 'inherit'
197194
},
@@ -201,7 +198,7 @@ export default (theme: Theme) =>
201198
margin: '0.5rem'
202199
},
203200
starterProjectCardBody: {
204-
width: '100%',
201+
width: 'auto',
205202
display: 'flex',
206203
borderTop: '1px solid',
207204
borderTopColor: 'inherit',

src/webview/devfile-registry/app/cardItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class CardItem extends React.Component<DevFileProps, {
208208
className={this.props.cardItemStyle.button}
209209
onClick={this.openInBrowser}>
210210
<TextContent>
211-
<Text component={TextVariants.h1}>
211+
<Text component={TextVariants.h6}>
212212
Open in Browser
213213
</Text>
214214
</TextContent>

0 commit comments

Comments
 (0)