Decrease the header size in mobile mode
5 Replies
AK
Alagumeena Kalaiselvan
Syncfusion Team
May 25, 2020 12:15 PM UTC
Hi Marcelo,
Thanks for contacting Syncfusion support.
We have validated your reported case “How to decrease the header size in mobile mode” and we suggest you to override the below Css classes to reduce the header size of Tab component. Refer the below code for that.
|
<SfTab CssClass="tab-adaptive">
<TabItems>
...
</TabItems>
</SfTab>
<style>
@@media screen and (max-width: 425px){ // To reduce Tab header size
.e-tab.tab-adaptive .e-tab-header, .e-tab.tab-adaptive .e-tab-header .e-toolbar-items, .e-tab.tab-adaptive .e-tab-header .e-toolbar-item:not(.e-separator) {
height: 32px !important;
min-height: 32px !important;
}
.e-tab.tab-adaptive .e-tab-header .e-toolbar-item .e-tab-wrap, .e-tab.tab-adaptive .e-tab-header .e-toolbar-item .e-text-wrap, .e-tab.tab-adaptive .e-tab-header .e-toolbar-item.e-active.e-ileft .e-text-wrap {
height: 32px;
}
}
</style> |
Also, we have prepared a sample based on your requirement which can be downloaded from the below link.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabComponent-340593672
Kindly get back to us, If you need further assistance.
Regards
Alagumeena.K
MO
Marcelo Oliveira Santos
May 27, 2020 08:39 PM UTC
AK
Alagumeena Kalaiselvan
Syncfusion Team
May 28, 2020 07:10 AM UTC
Hi Marcelo,
Thanks for clarifying your requirement.
We have checked your shared files and you can reduce the height of the vertical Tab header by overriding the few Css class. Refer the below code
|
<style>
.e-tab.tab-adaptive .e-tab-header .e-toolbar-item:not(.e-separator) {
height: 28px !important;
min-height: 28px !important;
}
.e-tab.tab-adaptive .e-tab-header .e-toolbar-item .e-tab-wrap, .e-tab.tab-adaptive .e-tab-header .e-toolbar-item.e-active.e-ileft .e-text-wrap {
height: 28px !important;
}
.e-tab.tab-adaptive .e-tab-header.e-vertical.e-vertical-left .e-indicator {
height: 28px !important;
}
</style> |
Also, we modified the already shared sample for your reference which can get from the following link.
Sample Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TabComponent1643668471
Please try with shared solution and get back to us whether it meets your requirement.
Regards
Alagumeena.K
MO
Marcelo Oliveira Santos
May 28, 2020 06:04 PM UTC
Hi Alagumeena Kalaiselvan,
This really helped me a lot.
Thanks.
VM
Vengatesh Maniraj
Syncfusion Team
May 29, 2020 04:31 AM UTC
Hi Marcelo,
You are most welcome😊
Please get in touch with us if you need any further assistance.
Regards,
Vengatesh
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
MO Marcelo Oliveira Santos
- May 23, 2020 06:53 AM UTC
- May 29, 2020 04:31 AM UTC