Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ def display_pet_card(pet, is_favorite=False, context="search"):
|
|
220 |
st.markdown("</div>", unsafe_allow_html=True)
|
221 |
|
222 |
if pet['description']:
|
223 |
-
st.markdown(f"<div class='pet-description'>{pet['description'][:
|
224 |
|
225 |
col1, col2 = st.columns(2)
|
226 |
with col1:
|
@@ -349,8 +349,10 @@ def display_pet_details(pet_id, context="search", tab_id="tab1"):
|
|
349 |
|
350 |
# Description
|
351 |
if pet['description']:
|
352 |
-
|
353 |
-
|
|
|
|
|
354 |
|
355 |
# Contact information
|
356 |
st.markdown("### Adoption Information")
|
|
|
220 |
st.markdown("</div>", unsafe_allow_html=True)
|
221 |
|
222 |
if pet['description']:
|
223 |
+
st.markdown(f"<div class='pet-description'>{pet['description'][:500]}{'...' if len(pet['description']) > 500 else ''}</div>", unsafe_allow_html=True)
|
224 |
|
225 |
col1, col2 = st.columns(2)
|
226 |
with col1:
|
|
|
349 |
|
350 |
# Description
|
351 |
if pet['description']:
|
352 |
+
if pet['description']:
|
353 |
+
st.markdown("### About")
|
354 |
+
#st.markdown(pet['description'])
|
355 |
+
st.markdown(f"<div class='pet-description'>{pet['description'][:500]}{'...' if len(pet['description']) > 500 else ''}</div>", unsafe_allow_html=True)
|
356 |
|
357 |
# Contact information
|
358 |
st.markdown("### Adoption Information")
|