Skip to content

Commit b725ca0

Browse files
committed
chore: revert deleted styles for ChartGroup
1 parent d3cbab7 commit b725ca0

File tree

2 files changed

+80
-6
lines changed

2 files changed

+80
-6
lines changed

src/Pages/ChartStore/ChartDetails/ChartDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const ChartDetails = () => {
5858
)
5959

6060
useEffect(() => {
61-
if (!isFetchingChartVersions && chartVersions) {
61+
if (!isFetchingChartVersions && chartVersions?.length) {
6262
setSelectedChartVersion(chartVersions[0].id)
6363
}
6464
}, [isFetchingChartVersions, chartVersions])

src/components/charts/charts.scss

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
*/
1616

1717
.chart-grid-item {
18-
transition: box-shadow 0.5s ease-out, border-color 0.3s ease-out;
18+
transition:
19+
box-shadow 0.5s ease-out,
20+
border-color 0.3s ease-out;
1921

2022
&.chart-grid-item--selected {
2123
border: solid 1px var(--B500);
2224
background-color: var(--B50);
2325
}
2426

25-
2627
.chart-icon-dim {
2728
transition: transform 0.17s ease-out;
2829
}
@@ -148,7 +149,9 @@
148149

149150
.chart-group-card__icon-wrapper {
150151
margin-right: -24px;
151-
transition: transform 0.17s ease-out, margin-right 0.3s ease-out;
152+
transition:
153+
transform 0.17s ease-out,
154+
margin-right 0.3s ease-out;
152155
}
153156

154157
.deploy-selected-charts__applications-edit {
@@ -311,7 +314,6 @@
311314
grid-gap: 16px;
312315
}
313316

314-
315317
.modal__body--deploy-selected-charts {
316318
width: 600px;
317319
max-height: 80vh;
@@ -337,4 +339,76 @@
337339
padding: 0 24px;
338340
margin-bottom: unset;
339341
}
340-
}
342+
}
343+
344+
.chart-store-card__header {
345+
flex-basis: 24px;
346+
font-size: 16px;
347+
font-weight: 600;
348+
border-bottom: 1px solid var(--N100);
349+
width: 100%;
350+
line-height: 1.5;
351+
padding: 16px 20px;
352+
color: var(--N900);
353+
}
354+
355+
.chart-store-card__body {
356+
padding: 16px 20px;
357+
}
358+
359+
.chart-store-card__subtitle {
360+
font-size: 12px;
361+
color: var(--N700);
362+
margin-bottom: 6px;
363+
font-weight: normal;
364+
}
365+
366+
.chart-store-card__text {
367+
min-height: 20px;
368+
margin-bottom: 16px;
369+
word-wrap: break-word;
370+
max-width: 100%;
371+
font-size: 14px;
372+
color: var(--N900);
373+
374+
&.chart-store-card__text--no-margin {
375+
margin: 0px;
376+
}
377+
}
378+
379+
.chart-store-card__text--see-more {
380+
margin-bottom: 0px;
381+
}
382+
383+
.chart-store-card__deployment-list {
384+
flex: 1;
385+
overflow-y: auto;
386+
padding-bottom: 8px;
387+
}
388+
389+
.modal__body {
390+
&.modal__body--manage-values {
391+
padding-left: 0px;
392+
padding-right: 0px;
393+
padding-bottom: 0px;
394+
}
395+
}
396+
397+
.modal__header {
398+
&.modal__header--manage-values {
399+
padding: 0 24px;
400+
}
401+
}
402+
403+
.text-button {
404+
border: none;
405+
background-color: inherit;
406+
font-size: 12px;
407+
font-weight: 600;
408+
font-stretch: normal;
409+
font-style: normal;
410+
line-height: 1.67;
411+
letter-spacing: normal;
412+
text-align: right;
413+
color: var(--B500);
414+
}

0 commit comments

Comments
 (0)