feat: 将侧栏品牌移到导航上方

This commit is contained in:
nixevol
2026-09-16 16:48:22 +08:00
parent e843e56161
commit 1e12df5c8c
+14 -3
View File
@@ -11,8 +11,19 @@ pages = {
"results": st.Page(results_page.render, title="成果浏览", icon="📦", url_path="results"),
}
st.session_state["pages"] = pages
nav = st.navigation(
{"工具": [pages["home"], pages["market"], pages["buildings"]],
"工作记录": [pages["tasks"], pages["results"]]},
position="hidden",
)
with st.sidebar:
st.title("MarketGrid")
st.caption("本地空间数据工具箱")
st.navigation({"工具": [pages["home"], pages["market"], pages["buildings"]],
"工作记录": [pages["tasks"], pages["results"]]}).run()
st.caption("空间数据工具箱")
st.subheader("工具")
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.page_link(pages["tasks"], label="任务中心", icon="⏳", use_container_width=True)
st.page_link(pages["results"], label="成果浏览", icon="📦", use_container_width=True)
nav.run()