Skip to content

Commit fe48142

Browse files
committed
Fixed diff styling
Signed-off-by: Omkar Phansopkar <[email protected]>
1 parent 75e56ef commit fe48142

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/components/LicenseEntity/MatchedTextContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const MatchedTextProvider = (
183183
<>
184184
<h6>Coverage: {matchDetails.coverage} %</h6>
185185
<Row>
186-
<Col sm={12} md={6}>
186+
<Col sm={12} md={6} className="rule-text-section">
187187
<table className="diff-table">
188188
<thead>
189189
<tr>
@@ -220,7 +220,7 @@ export const MatchedTextProvider = (
220220
</tbody>
221221
</table>
222222
</Col>
223-
<Col sm={12} md={6}>
223+
<Col sm={12} md={6} className="matched-text-section">
224224
<table className="diff-table">
225225
<thead>
226226
<tr>

src/components/LicenseEntity/licenseEntity.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,18 @@
2929
max-height: calc(100vh - 120px);
3030
}
3131

32+
.matched-text-diff-modal .row {
33+
padding: 5px;
34+
}
35+
3236
.matched-text-diff-modal .rule-text-section {
33-
background-color: #f4feff;
37+
background-color: #f6feff;
38+
padding: 0;
3439
}
3540

3641
.matched-text-diff-modal .matched-text-section {
37-
background-color: #fafff5;
42+
background-color: #f9fffc;
43+
padding: 0;
3844
}
3945

4046
.matched-text-diff-modal .diff-table {
@@ -44,7 +50,7 @@
4450

4551
.matched-text-diff-modal .diff-table th {
4652
padding: 15px;
47-
padding-left: 5px;
53+
padding-left: 10px;
4854
font-size: 15px;
4955
font-weight: 500;
5056
background-color: #fafbfc;

0 commit comments

Comments
 (0)