Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

streamlit sidebar width

#This is a workarround
st.markdown(
     """
     <style>
     [data-testid="stSidebar"][aria-expanded="true"] > div:first-child {
         width: 450px;
       }
       [data-testid="stSidebar"][aria-expanded="false"] > div:first-child {
           width: 500px;
           margin-left: -500px;
        }
        </style>
        """,
        unsafe_allow_html=True)
Comment

PREVIOUS NEXT
Code Example
Python :: zip a directory in python 
Python :: file open in python 
Python :: how to add list numbers in python 
Python :: how to join tables in python 
Python :: python convert ascii to char 
Python :: username python 
Python :: python delete key dictionary 
Python :: assertionerror-accepted-renderer-not-set-on-response-in-django 
Python :: plt delete space before axis 
Python :: django abstractuser 
Python :: flask form 
Python :: table in sqlite python 
Python :: divide all values in array python 
Python :: get the path of a module in python 
Python :: how to drop duplicate columns in pandas that dont have the same name? 
Python :: freecodecamp python 
Python :: marshmallow default value 
Python :: flask run 
Python :: pil format multiline text 
Python :: python convert b string to dict 
Python :: seaborn boxplot legend color 
Python :: find highest value in array python 
Python :: python is not clickable at point (434, 682). Other element would receive the click: 
Python :: python tkinter checkbox default value 
Python :: pyautogui doc 
Python :: python curses for windows 
Python :: python selenium print element 
Python :: get webpage python 
Python :: django jazzmin pypi 
Python :: find & replace in csv file 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =