The tabs header is not responsive to the change in screen size. On a large screen, we will see all 4 tabs. If we make the screen smaller, we will have to scroll to the right to see all tabs. How to make the tabs header responsive? Better yet, if we are on mobile/smaller screen, can the tabs header become vertical?
import streamlit as st list_tabs = ['Introduction','Analysis', 'Abcdefghij', 'Contact', 'aowpoiero0ewraozirpqwoi'] whitespace = 15 tabs = st.tabs([s.center(whitespace,"\u2001") for s in list_tabs])
See ALL tab headers in one small screen
Have to scroll right to see all tab options