Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -297,9 +297,8 @@ def display_pet_details(pet_id):
|
|
297 |
if st.session_state.selected_pet is not None:
|
298 |
st.session_state.selected_pet = None
|
299 |
st.experimental_rerun() # Force immediate rerun
|
300 |
-
|
301 |
-
|
302 |
-
st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)
|
303 |
|
304 |
status_color = "#c8e6c9" if pet['status'] == 'adoptable' else "#ffcdd2"
|
305 |
st.markdown(f"<div style='text-align: center;'><span class='tag' style='background-color: {status_color}; font-size: 1rem;'>{pet['status'].title()}</span></div>", unsafe_allow_html=True)
|
|
|
297 |
if st.session_state.selected_pet is not None:
|
298 |
st.session_state.selected_pet = None
|
299 |
st.experimental_rerun() # Force immediate rerun
|
300 |
+
# Pet name and status
|
301 |
+
st.markdown(f"<h1 class='main-header'>{pet['name']}</h1>", unsafe_allow_html=True)
|
|
|
302 |
|
303 |
status_color = "#c8e6c9" if pet['status'] == 'adoptable' else "#ffcdd2"
|
304 |
st.markdown(f"<div style='text-align: center;'><span class='tag' style='background-color: {status_color}; font-size: 1rem;'>{pet['status'].title()}</span></div>", unsafe_allow_html=True)
|