Skip to content

Commit e1de183

Browse files
committed
better layout
1 parent 4d402ba commit e1de183

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

hydradx/apps/stableswap/eur_usd_arbitrage_sim.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,15 @@ def simulation_section() -> None:
733733

734734
# Small preview panel that refreshes only when StableSwap settings change.
735735
preview_box = col_b.container()
736+
preview_box.markdown(
737+
"""
738+
<style>
739+
div[data-testid="stTextInput"] { margin-top: -0.35rem; margin-bottom: -0.35rem; }
740+
div[data-testid="stTextInput"] input { padding-top: 0.1rem; padding-bottom: 0.1rem; }
741+
</style>
742+
""",
743+
unsafe_allow_html=True,
744+
)
736745
preview_row = preview_box.columns([2, 1, 2, 2])
737746
preview_row[0].markdown("Price of a")
738747
usd_trade_size_raw = preview_row[1].text_input(
@@ -1046,7 +1055,7 @@ def simulation_section() -> None:
10461055
# ── Binance bias factor lives OUTSIDE the fragment because it affects the
10471056
# price chart. Changing it redraws the chart and resets the simulation.
10481057
binance_bias_slider = sidebar.slider(
1049-
"Binance vs Kraken bias",
1058+
"Binance vs Kraken price bias",
10501059
min_value=-10.0, max_value=10.0,
10511060
value=st.session_state.get("binance_bias_slider", 3.0),
10521061
step=0.5,

0 commit comments

Comments
 (0)