Material-ui: [TimeLine] Center the TimeLineContent to occupy less vertical space

Created on 9 Jul 2020  路  4Comments  路  Source: mui-org/material-ui

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 馃挕

When the TimeLineContent contains more text it is occupying more space. For TimeLine align(right and left) its okay. But for 'alternate' we can make the content to be at center so that it wont be occupying more vertical space.

Sandbox URL

timeline1JPG

If we can move the code a bit top(Not touching the above icon) and icon somewhat below to look like middle of the content which looks good and also it wont be awkward.

If moving the TimeLineContent above sides with the above template we can have a arrow to TimeLineContent to the Icon/dot.(I dont think is required as we can understand clearly if the icon is at middle of the content). This is just another suggestion.

Examples 馃寛


Something Like this
image

Motivation 馃敠

Timeline docs good to take

Most helpful comment

@joshwooding Yeah, I think that updating the current demo would be great. I would also like to remove the Paper from the demo, the shadows quickly become ugly when overused. I would also rename the demo to ## Complex timeline, it's still Material Design, default look.

For a new demo, I think that a new customization demo would be better.

All 4 comments

You can already do this thanks to @mnajdova's great work: https://codesandbox.io/s/staging-sun-lttwr

It would be nice to showcase this either in a new demo or maybe editing the current one. cc @oliviertassinari

@joshwooding Yeah, I think that updating the current demo would be great. I would also like to remove the Paper from the demo, the shadows quickly become ugly when overused. I would also rename the demo to ## Complex timeline, it's still Material Design, default look.

For a new demo, I think that a new customization demo would be better.

PR incoming if no one is working on this :)

Oh..just in one night. Awesome thanks for such quick responses. Just a small thing I just gone through the example and made the changes to it like removing the top connector for first node and bottom connector for last node. It was bit ugly.

tranparentConnector: { backgroundColor: "transparent" }
<TimelineConnector className={classes.tranparentConnector} />

Updated sandbox URL

Adding these two will look good for the example. You can see the demo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zabojad picture zabojad  路  3Comments

ghost picture ghost  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

activatedgeek picture activatedgeek  路  3Comments

chris-hinds picture chris-hinds  路  3Comments