Skip to content

Commit

Permalink
fix(variant): SKFP-900 summary variant (Ferlab-Ste-Justine#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltefrohneGaelle authored Mar 5, 2024
1 parent 88f7fdb commit 3b2ee7e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
3 changes: 3 additions & 0 deletions packages/ui/Release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 9.6.4 2024-03-05
- fix: SKFP-900 style fix

### 9.6.3 2024-03-05
- fix: SKFP-900 variant summary fixes

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ferlab/ui",
"version": "9.6.3",
"version": "9.6.4",
"description": "Core components for scientific research data portals",
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@
margin-bottom: 12px;
}

.detailsItemLabel {
color: $gray-7;
}
.ant-descriptions-item-label::after {
margin: 0 8px 0 0;
}
Expand Down
15 changes: 3 additions & 12 deletions packages/ui/src/pages/EntityPage/EntityVariantSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,14 @@ export const EntityVariantSummary = ({ data, id, loading, noDataLabel }: ISummar
<Space direction="horizontal" size="middle">
<Descriptions column={1}>
{detailsLeftSectionCol1?.map((item: IDataItem, index: number) => (
<Descriptions.Item
key={index}
label={<span className={style.detailsItemLabel}>{item.label}</span>}
>
<Descriptions.Item key={index} label={<span>{item.label}</span>}>
<span className={style.detailsItemValue}>{item.value}</span>
</Descriptions.Item>
))}
</Descriptions>
<Descriptions column={1}>
{detailsLeftSectionCol2?.map((item: IDataItem, index: number) => (
<Descriptions.Item
key={index}
label={<span className={style.detailsItemLabel}>{item.label}</span>}
>
<Descriptions.Item key={index} label={<span>{item.label}</span>}>
<span className={style.detailsItemValue}>{item.value}</span>
</Descriptions.Item>
))}
Expand All @@ -101,10 +95,7 @@ export const EntityVariantSummary = ({ data, id, loading, noDataLabel }: ISummar
title={<span className={style.detailsTitle}>{detail.title}</span>}
>
{detail.items.map((item: IDataItem, index: number) => (
<Descriptions.Item
key={index}
label={<span className={style.detailsItemLabel}>{item.label}</span>}
>
<Descriptions.Item key={index} label={<span>{item.label}</span>}>
<span className={style.detailsItemValue}>{item.value}</span>
</Descriptions.Item>
))}
Expand Down

0 comments on commit 3b2ee7e

Please sign in to comment.