Skip to content

Commit 29a70fc

Browse files
committed
fix(title-overlap): fix title styles
1 parent cc8affc commit 29a70fc

File tree

7 files changed

+6
-14
lines changed

7 files changed

+6
-14
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ body:
1717
description: Provide a summary of the issue and what you expected to happen, including specific steps to reproduce.
1818
validations:
1919
required: true
20-
- type: textarea
21-
id: reduced-test-case
22-
attributes:
23-
label: Reduced test cases
24-
description: Include links [reduced test case](https://css-tricks.com/reduced-test-cases/) links or suggested fixes using CodePen ([v4 template](https://codepen.io/team/bootstrap/pen/yLabNQL) or [v5 template](https://codepen.io/team/bootstrap/pen/qBamdLj)).
25-
validations:
26-
required: true
2720
- type: dropdown
2821
id: os
2922
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Feature request
22
description: Suggest new or updated features to include the library.
33
title: 'Suggest a new feature'
44
labels: [feature]
5-
assignees: []
65
body:
76
- type: checkboxes
87
attributes:

lib/cjs/styles/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/esm/styles/main.js

Lines changed: 1 addition & 1 deletion
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": "vertical-timeline-component-react",
3-
"version": "4.3.3",
3+
"version": "4.3.4",
44
"description": "A simple component for create a vertical timeline with React",
55
"main": "./lib/cjs/index.js",
66
"module": "./lib/esm/index.js",

src/styles/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ interface TitleProps {
101101
export const Title = styled.h2<TitleProps>`
102102
color: ${(props) => props.theme.titleColor};
103103
cursor: ${(props) => (props.collapse ? 'pointer' : 'default')};
104+
display: inline-block;
104105
font-size: 1rem;
105106
font-weight: bold;
106107
margin: 0;
107-
width: max-content;
108108
109109
&:after {
110110
background-color: ${(props) => props.theme.dotColor};

tests/components/timeline/__snapshots__/index.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Object {
4343
class="sc-jSMfEi cJrrOV"
4444
>
4545
<h2
46-
class="sc-gKXOVf bssMtP"
46+
class="sc-gKXOVf ecQnjG"
4747
>
4848
I'm a title
4949
</h2>
@@ -115,7 +115,7 @@ Object {
115115
class="sc-jSMfEi cJrrOV"
116116
>
117117
<h2
118-
class="sc-gKXOVf bssMtP"
118+
class="sc-gKXOVf ecQnjG"
119119
>
120120
I'm a title
121121
</h2>

0 commit comments

Comments
 (0)