Skip to content

Commit 3d346c4

Browse files
fix ui changes in helm chart view (#2874)
* fix ui changes in helm chart view Signed-off-by: msivasubramaniaan <[email protected]>
1 parent 792133a commit 3d346c4

File tree

7 files changed

+361
-214
lines changed

7 files changed

+361
-214
lines changed

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,16 @@
406406
"title": "Open Helm Charts",
407407
"category": "OpenShift"
408408
},
409+
{
410+
"command": "openshift.componentTypesView.registry.helmChart.install",
411+
"title": "Open Helm Charts",
412+
"category": "OpenShift"
413+
},
414+
{
415+
"command": "openshift.componentTypesView.registry.helmChart.open",
416+
"title": "Open Helm Charts",
417+
"category": "OpenShift"
418+
},
409419
{
410420
"command": "openshift.project.delete",
411421
"title": "Delete",
@@ -1046,6 +1056,14 @@
10461056
"command": "openshift.componentTypesView.registry.openHelmChartsInView",
10471057
"when": "false"
10481058
},
1059+
{
1060+
"command": "openshift.componentTypesView.registry.helmChart.install",
1061+
"when": "false"
1062+
},
1063+
{
1064+
"command": "openshift.componentTypesView.registry.helmChart.open",
1065+
"when": "false"
1066+
},
10491067
{
10501068
"command": "openshift.componentTypesView.registry.openInBrowser",
10511069
"when": "false"

src/webview/common/cardItem.style.tsx

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default (_theme: Theme) =>
4343
zIndex: 1
4444
},
4545
helmHomeCard: {
46-
height: '20rem',
47-
width: '15rem',
48-
margin: '1rem'
46+
height: '13rem',
47+
width: '11rem',
48+
margin: '0.5rem'
4949
},
5050
cardHeader: {
5151
display: 'block',
@@ -123,12 +123,13 @@ export default (_theme: Theme) =>
123123
WebkitBoxOrient: 'vertical'
124124
},
125125
detailedDescription: {
126-
width: '45rem',
126+
width: '28rem',
127127
wordWrap: 'break-word',
128128
display: '-webkit-box',
129129
WebkitLineClamp: 20,
130130
WebkitBoxOrient: 'vertical',
131-
textAlign: 'left'
131+
textAlign: 'justify',
132+
margin: '1rem 0.5rem 0 1rem'
132133
},
133134
helmCard: {
134135
color: 'var(--vscode-foreground) !important',
@@ -137,10 +138,9 @@ export default (_theme: Theme) =>
137138
fontFamily: 'var(--vscode-font-family)',
138139
border: '1px solid',
139140
borderColor: 'inherit',
140-
height: '37rem',
141-
width: '50rem',
141+
height: 'auto',
142+
width: '64rem',
142143
margin: 'auto',
143-
overflowY: 'auto',
144144
display: 'flex',
145145
flexDirection: 'column'
146146
},
@@ -152,20 +152,52 @@ export default (_theme: Theme) =>
152152
display: 'flex',
153153
flexDirection: 'column'
154154
},
155+
helmHeaderProvider: {
156+
display: 'flex',
157+
flexDirection: 'row',
158+
gap: '0.5rem',
159+
width: '15rem'
160+
},
155161
helmCardBody: {
156162
position: 'relative',
157163
width: '100%',
158-
height: '50rem',
159-
margin: '1rem',
164+
height: '20rem',
160165
display: 'flex',
166+
overflowY: 'auto',
161167
flexDirection: 'column',
162168
gap: '1rem'
163169
},
170+
helmInputBox: {
171+
margin: '1rem !important',
172+
border: '0.5px solid !important'
173+
},
164174
helmCardDetails: {
165175
display: 'flex',
166176
flexDirection: 'row',
167-
gap: '0.5rem',
168-
marginRight: '1rem'
177+
gap: '0.5rem'
178+
},
179+
helmCardDetailItemValue: {
180+
margin: '0.5rem 0 !important'
181+
},
182+
helmCardDetailItem: {
183+
width: 'fit-content',
184+
color: 'var(--vscode-settings-textInputForeground)'
185+
},
186+
helmInstallBtn: {
187+
textAlign: 'center',
188+
overflow: 'hidden',
189+
'&:hover': {
190+
cursor: 'pointer',
191+
backgroundColor: '#BE0000 !important'
192+
},
193+
textTransform: 'none',
194+
width: 'auto',
195+
height: '2rem',
196+
outline: '0.0625rem solid transparent',
197+
outlineOffset: '0.125rem!important',
198+
fontSize: 'var(--vscode-font-size) !important',
199+
fontFamily: 'var(--vscode-font-family) !important',
200+
justifyContent: 'space-between !important'
169201
},
170202
yamlCard: {
171203
color: 'var(--vscode-foreground) !important',

src/webview/common/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const LoadScreen: React.FC<LoadProps> = ({
2121
const isInstall = title.indexOf('Install') !== -1;
2222
return (
2323
<div className={isInstall ? '' : loadingStyle.loading}>
24-
<div style={{ width : isInstall ? '48rem' : '30rem' }}>
24+
<div style={{ width : isInstall ? 'auto' : '30rem' }}>
2525
<Box sx={{ color: '#EE0000' }}>
2626
<LinearProgress color='inherit' sx={{ height: isInstall ? '0.5rem' : '1rem' }} />
2727
</Box>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*-----------------------------------------------------------------------------------------------
2+
* Copyright (c) Red Hat, Inc. All rights reserved.
3+
* Licensed under the MIT License. See LICENSE file in the project root for license information.
4+
*-----------------------------------------------------------------------------------------------*/
5+
6+
.MuiAutocomplete-inputRoot {
7+
background-color: var(--vscode-dropdown-background) !important;
8+
border-color: var(--vscode-dropdown-border) !important;
9+
color: var(--vscode-dropdown-foreground) !important;
10+
border: 0.5px solid;
11+
width: 60% !important;
12+
margin: 0.5rem !important;
13+
}
14+
15+
.MuiAutocomplete-inputRoot:disabled {
16+
background-color: var(--vscode-list-inactiveSelectionBackground) !important;
17+
color: var(--vscode-list-inactiveSelectionForeground) !important;
18+
}
19+
20+
.MuiInputBase-root {
21+
background-color: var(--vscode-settings-textInputBackground) !important;
22+
border-color: var(--vscode-settings-textInputBorder) !important;
23+
color: var(--vscode-settings-textInputForeground) !important;
24+
}
25+
26+
.MuiSvgIcon-root {
27+
color: whitesmoke;
28+
}

0 commit comments

Comments
 (0)