I'm using react-chrono for implementing a timeline in my application, however I cannot set the box width no matter how hard I try. My current implementation looks like this.
I'd like to make the card smaller as well. Here is my current code:
<div className="flex flex-col m-5">
<div className="hidden sm:block">
<CardSection />
<div className="h-80 bg-slate-200">
<Chrono mode="VERTICAL" items={items}></Chrono>
</div>
</div>
</div>
If you want the entire timeline to be narrower, you should be able to set a width on your
<div>wrapper:If you also want to make the cards narrower, it looks like react-chrono provides a
cardWidthproperty. This is untested:See https://www.npmjs.com/package/react-chrono#props for all of the available props.