CCockrum commited on
Commit
6330bad
·
verified ·
1 Parent(s): a9aae5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: #c8e6c9;'>Adoptable</span> "
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'][:150]}{'...' if len(pet['description']) > 150 else ''}</div>", unsafe_allow_html=True)
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: