style: 收紧工具箱页面与侧栏留白
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
"""本地工具箱入口:streamlit run app.py。"""
|
||||
import streamlit as st
|
||||
from ui import home_page, market_page, building_page, tasks_page, results_page
|
||||
from ui.layout import apply_compact_layout
|
||||
|
||||
st.set_page_config(page_title="MarketGrid 工具箱", page_icon="🗺️", layout="wide")
|
||||
apply_compact_layout()
|
||||
pages = {
|
||||
"home": st.Page(home_page.render, title="工具箱首页", icon="🏠", default=True),
|
||||
"market": st.Page(market_page.render, title="市场网格出图", icon="🗺️", url_path="market"),
|
||||
@@ -17,13 +19,13 @@ nav = st.navigation(
|
||||
position="hidden",
|
||||
)
|
||||
with st.sidebar:
|
||||
st.title("MarketGrid")
|
||||
st.markdown("## MarketGrid")
|
||||
st.caption("空间数据工具箱")
|
||||
st.subheader("工具")
|
||||
st.markdown("**工具**")
|
||||
st.page_link(pages["home"], label="工具箱首页", icon="🏠", use_container_width=True)
|
||||
st.page_link(pages["market"], label="市场网格出图", icon="🗺️", use_container_width=True)
|
||||
st.page_link(pages["buildings"], label="楼宇数据查询", icon="🏢", use_container_width=True)
|
||||
st.subheader("工作记录")
|
||||
st.markdown("**工作记录**")
|
||||
st.page_link(pages["tasks"], label="任务中心", icon="⏳", use_container_width=True)
|
||||
st.page_link(pages["results"], label="成果浏览", icon="📦", use_container_width=True)
|
||||
nav.run()
|
||||
|
||||
Reference in New Issue
Block a user