Fix empty space top of Site
This commit is contained in:
parent
25d8674467
commit
16a50e0e2c
@ -14,10 +14,18 @@ init_state()
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
st.set_page_config(
|
st.set_page_config(page_title="Lightweight code editor", layout="wide")
|
||||||
page_title="Lightweight code editor",
|
|
||||||
layout="wide")
|
st.markdown(
|
||||||
|
"""
|
||||||
|
<style>
|
||||||
|
.block-container { padding-top: 1rem; }
|
||||||
|
[data-testid="stSidebarContent"] { padding-top: 0rem; margin-top: -2rem; }
|
||||||
|
</style>
|
||||||
|
""",
|
||||||
|
unsafe_allow_html=True,
|
||||||
|
)
|
||||||
|
|
||||||
st.title("Lightweight code editor")
|
st.title("Lightweight code editor")
|
||||||
|
|
||||||
init_state()
|
init_state()
|
||||||
@ -28,6 +36,6 @@ def main():
|
|||||||
render_editor()
|
render_editor()
|
||||||
elif st.session_state.get("radio_interface_options") == "Chat with AI Assistant":
|
elif st.session_state.get("radio_interface_options") == "Chat with AI Assistant":
|
||||||
render_chat()
|
render_chat()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user