Skip to content

Commit 5f14f25

Browse files
RafaelKrCompuIves
authored andcommitted
fix(RollingText): inherit width from parent (codesandbox#2115)
* fix(RollingText): inherit width from parent Fixes codesandbox#2114 The container for the old children should also inherit it's width from parent. RollingText is used in the Title- and the Frameworks-component and they both seem to behave correctly now. * Add @RafaelKr as a contributor
1 parent e787067 commit 5f14f25

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

.all-contributorsrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,16 @@
12801280
"contributions": [
12811281
"doc"
12821282
]
1283+
},
1284+
{
1285+
"login": "RafaelKr",
1286+
"name": "Rafael",
1287+
"avatar_url": "https://avatars1.githubusercontent.com/u/14234815?v=4",
1288+
"profile": "https://github.com/RafaelKr",
1289+
"contributions": [
1290+
"bug",
1291+
"code"
1292+
]
12831293
}
12841294
],
12851295
"repoType": "github",

README.md

Lines changed: 22 additions & 2 deletions
Large diffs are not rendered by default.

packages/homepage/src/components/RollingText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default class RollingText extends React.Component {
5252
style={{ display: 'inline-block', position: 'relative', ...style }}
5353
>
5454
<div
55-
style={{ position: 'absolute', left: 0 }}
55+
style={{ position: 'absolute', left: 0, width: 'inherit' }}
5656
ref={el => {
5757
this.fadeout = el;
5858
}}

0 commit comments

Comments
 (0)