Hi Samarth,
To achieve this you have to add some custom styling to tab container. To add custom styling the best way is to;
- Install or open and setup Calypso
- Go to your project directory > ‘\theme\styles\web\sass\app’
- Create a new folder for your widget or UI resource (in your case this will be ‘Widgets’)
- Add a new file under your new folder (in your case filename will be ‘_tabcontainer.scss’). You can have a look at available widget filenames by navigating to project directory > theme > styles > web > sass > core > widget.
- Open _custom.scss from app folder and import newly added file, (in your case, add @import "Widgets/tabcontainer" and save it
- Go to newly created file and add required SCSS code and save it so that Calypso compiles the code. (in your case go to _tabcontainer.scss add below suggested code)
.custom-tabcontainer .mx-tabcontainer {
.mx-tabcontainer-content {
height: 250px; //Update height as per your requirement
overflow-y: scroll;
}
}
My suggestion will be to add custom class called .custom-tabcontainer to your tab container scss file and apply custom-tabcontainer class to your tab container widget on the page. If you want this style to be applied across all the tab containers in the application than just remove .custom-tabcontainer from the code above.
Hope this helps!