Skip to content

Commit 9b633ce

Browse files
authored
Merge pull request #45 from TomPlum/develop
fix(table): fixed commit message padding
2 parents 967acc3 + 5c61b95 commit 9b633ce

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

packages/library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Thomas Plumpton",
44
"repository": "https://github.com/TomPlum/react-git-log",
55
"description": "A flexible, themable, React component for visualising Git commit history, branch and tag metadata.",
6-
"version": "2.3.0",
6+
"version": "2.4.0",
77
"license": "Apache-2.0",
88
"type": "module",
99
"main": "dist/react-git-log.js",

packages/library/src/__snapshots__/GitLog.spec.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42603,7 +42603,7 @@ exports[`GitLog > should render correctly and match the snapshot of the GitLog c
4260342603
class="message"
4260442604
data-testid="react-git-log-table-data-commit-message-0"
4260542605
id="react-git-log-table-data-commit-message-0"
42606-
style="line-height: 40px; color: rgb(153, 153, 153); background: linear-gradient( to bottom, transparent 2px, transparent 2px, transparent 38px, transparent 38px );"
42606+
style="line-height: 40px; color: rgb(153, 153, 153); background: linear-gradient( to bottom, transparent 2px, transparent 2px, transparent 38px, transparent 38px ); display: flex;"
4260742607
title="// WIP"
4260842608
>
4260942609
// WIP
@@ -100502,7 +100502,7 @@ exports[`GitLog > should render correctly and match the snapshot of the GitLog c
100502100502
class="message"
100503100503
data-testid="react-git-log-table-data-commit-message-0"
100504100504
id="react-git-log-table-data-commit-message-0"
100505-
style="line-height: 40px; color: rgb(153, 153, 153); background: linear-gradient( to bottom, transparent 2px, transparent 2px, transparent 38px, transparent 38px );"
100505+
style="line-height: 40px; color: rgb(153, 153, 153); background: linear-gradient( to bottom, transparent 2px, transparent 2px, transparent 38px, transparent 38px ); display: flex;"
100506100506
title="// WIP"
100507100507
>
100508100508
// WIP
@@ -216427,7 +216427,7 @@ exports[`GitLog > should render correctly and match the snapshot of the GitLog c
216427216427
class="message"
216428216428
data-testid="react-git-log-table-data-commit-message-0"
216429216429
id="react-git-log-table-data-commit-message-0"
216430-
style="line-height: 40px; color: rgb(153, 153, 153); background: linear-gradient( to bottom, transparent 6px, transparent 6px, transparent 34px, transparent 34px );"
216430+
style="line-height: 40px; color: rgb(153, 153, 153); display: flex; background: linear-gradient( to bottom, transparent 6px, transparent 6px, transparent 34px, transparent 34px );"
216431216431
title="// WIP"
216432216432
>
216433216433
// WIP

packages/library/src/modules/Table/components/CommitMessageData/CommitMessageData.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
padding-right: 30px;
66
padding-left: 20px;
77
font-weight: 400;
8-
display: flex;
98
}

packages/library/src/modules/Table/components/CommitMessageData/CommitMessageData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { IndexStatus } from 'modules/Table/components/IndexStatus'
55
export const CommitMessageData = ({ index, isIndex, commitMessage, style }: CommitMessageDataProps) => {
66
return (
77
<div
8-
style={style}
98
title={commitMessage}
109
className={styles.message}
1110
id={`react-git-log-table-data-commit-message-${index}`}
11+
style={{ ...style, display: isIndex ? 'flex' : undefined }}
1212
data-testid={`react-git-log-table-data-commit-message-${index}`}
1313
>
1414
{commitMessage}

0 commit comments

Comments
 (0)