ui: larger, more prominent tabs + hint to check all three tabs before export

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
dfuhrmann3 2026-07-13 15:49:06 +02:00
parent 34251a7ad2
commit e6897bd263
1 changed files with 20 additions and 0 deletions

20
main.py
View File

@ -312,6 +312,26 @@ with col2:
# Reiter-Navigation: gruppiert die Eingabefelder, damit man nicht die ganze Seite
# runterscrollen muss. Summen & Export stehen bewusst UNTERHALB der Tabs (immer sichtbar).
# Groessere, auffaellige Tabs per CSS, damit klar ist: hier gibt es mehrere Reiter zu pruefen.
st.markdown(
"""
<style>
.stTabs [data-baseweb="tab-list"] { gap: 12px; border-bottom: 2px solid #e6e6e6; }
.stTabs [data-baseweb="tab"] {
padding: 14px 34px;
background-color: #eef1f6;
border-radius: 10px 10px 0 0;
}
.stTabs [data-baseweb="tab"] p { font-size: 1.25rem !important; font-weight: 600; }
.stTabs [aria-selected="true"] {
background-color: #ffffff;
box-shadow: inset 0 -4px 0 0 #1d9e75;
}
</style>
""",
unsafe_allow_html=True,
)
st.markdown("➡️ **Bitte alle drei Reiter prüfen** (Kopfdaten · Adressen · Positionen), bevor du unten exportierst.")
tab_basis, tab_parteien, tab_positionen = st.tabs(
["Kopfdaten", "Adressen", "Positionen"]
)