Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ def display_pet_card(pet, is_favorite=False, context="search"):
|
|
188 |
# Tags
|
189 |
tags_html = ""
|
190 |
if pet['status'] == 'adoptable':
|
191 |
-
tags_html += "<span class='tag' style='background-color: #
|
192 |
else:
|
193 |
tags_html += f"<span class='tag' style='background-color: #ffcdd2;'>{pet['status'].title()}</span> "
|
194 |
|
@@ -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:
|
|
|
188 |
# Tags
|
189 |
tags_html = ""
|
190 |
if pet['status'] == 'adoptable':
|
191 |
+
tags_html += "<span class='tag' style='background-color: #808080;'>Adoptable</span> "
|
192 |
else:
|
193 |
tags_html += f"<span class='tag' style='background-color: #ffcdd2;'>{pet['status'].title()}</span> "
|
194 |
|
|
|
220 |
st.markdown("</div>", unsafe_allow_html=True)
|
221 |
|
222 |
if pet['description']:
|
223 |
+
st.markdown(f"<div class='pet-description'>{pet['description'][:300]}{'...' if len(pet['description']) > 300 else ''}</div>", unsafe_allow_html=True)
|
224 |
|
225 |
col1, col2 = st.columns(2)
|
226 |
with col1:
|