Skip to content

Commit 5dfb1ec

Browse files
committed
chore: Bump version to 1.6.13-beta-5 and enhance layout handling in InfoBlock component
1 parent b3595c5 commit 5dfb1ec

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.6.13-beta-4",
3+
"version": "1.6.13-beta-5",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/InfoBlock/InfoBlock.component.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,17 @@ const InfoBlock = ({
6060
return description
6161
}
6262

63-
const renderContent = () => (
64-
<div className="flexbox-col dc__gap-4 flex-grow-1">
65-
{renderHeading()}
66-
{renderDescription()}
67-
</div>
68-
)
63+
const renderContent = () => {
64+
const shouldAddGap = layout === 'column'
65+
const columnLayoutGapClass = size === ComponentSizeType.medium ? 'dc__gap-2' : 'dc__gap-4'
66+
67+
return (
68+
<div className={`flexbox-col flex-grow-1 ${shouldAddGap ? columnLayoutGapClass : ''}`}>
69+
{renderHeading()}
70+
{renderDescription()}
71+
</div>
72+
)
73+
}
6974

7075
if (layout === 'row') {
7176
return (

0 commit comments

Comments
 (0)