Skip to content

Commit

Permalink
fix: RichRow columns alignment (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
codev99 authored Sep 11, 2024
1 parent 6c2299b commit 2da5316
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions public/config/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"api": {
"AUTHN_API_BASE_URL": "http://172.205.100.25:8082",
"BFF_API_BASE_URL": "http://172.205.100.28:8081",
"EVENTS_API_BASE_URL": "http://172.205.100.170:8083",
"EVENTS_PUSH_API_BASE_URL": "http://172.205.100.170:8083",
"AUTHN_API_BASE_URL": "http://20.13.201.112:8082",
"BFF_API_BASE_URL": "http://20.13.201.207:8081",
"EVENTS_API_BASE_URL": "http://20.13.202.129:8083",
"EVENTS_PUSH_API_BASE_URL": "http://20.13.202.129:8083",
"TERMINAL_SOCKET_URL": "http://localhost:8084"
},
"params": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Widgets/RichRow/RichRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const RichRow = ({color, icon, subPrimaryText, primaryText, subSecondaryText, se


return (
<Flex justify="space-between" className={styles.richRow}>
<Space align="start" size="large">
<Flex justify="space-between" className={styles.richRow} gap={10}>
<Space align="start" size="large" className={styles.primary}>
<Avatar style={{ backgroundColor: getColorCode(color) }} size={icon ? 24 : 18} icon={<FontAwesomeIcon icon={icon} />} />
<div className={styles.primary}>
<div>
<Typography.Text className={styles.subtext}>{subPrimaryText}</Typography.Text>
<Typography.Paragraph>{primaryText}</Typography.Paragraph>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/components/Widgets/RichRow/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
border-bottom: solid 1px $border-color;
margin-top: 15px;

.primary {
flex: 1;
}

.secondary {
width: 20%;
}

.subtext {
color: $gray-color;
}
Expand Down

0 comments on commit 2da5316

Please sign in to comment.