DawnC commited on
Commit
6b71aa7
·
1 Parent(s): e92aa6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -335,6 +335,7 @@ async def predict(image):
335
  <span class="label">Size:</span>
336
  <span class="tooltip-icon">ⓘ</span>
337
  <span class="tooltip-text">
 
338
  <strong>Size Categories:</strong><br>
339
  • Small: Under 20 pounds<br>
340
  • Medium: 20-60 pounds<br>
@@ -388,6 +389,7 @@ async def predict(image):
388
  <span class="label">Exercise:</span>
389
  <span class="tooltip-icon">ⓘ</span>
390
  <span class="tooltip-text">
 
391
  <strong>Exercise Needs:</strong><br>
392
  • Low: Short walks and play sessions<br>
393
  • Moderate: 1-2 hours of daily activity<br>
@@ -767,8 +769,7 @@ async def predict(image):
767
  position: absolute;
768
  z-index: 100;
769
  bottom: 130%;
770
- right: -50%;
771
- transform: translateX(0);
772
  opacity: 0;
773
  transition: all 0.3s ease;
774
  font-size: 14px;
@@ -777,6 +778,10 @@ async def predict(image):
777
  border: 1px solid rgba(255, 255, 255, 0.1);
778
  }}
779
 
 
 
 
 
780
  .tooltip.tooltip-right .tooltip-text {{
781
  left: auto;
782
  right: 0;
 
335
  <span class="label">Size:</span>
336
  <span class="tooltip-icon">ⓘ</span>
337
  <span class="tooltip-text">
338
+ <span class="tooltip tooltip-left">
339
  <strong>Size Categories:</strong><br>
340
  • Small: Under 20 pounds<br>
341
  • Medium: 20-60 pounds<br>
 
389
  <span class="label">Exercise:</span>
390
  <span class="tooltip-icon">ⓘ</span>
391
  <span class="tooltip-text">
392
+ <span class="tooltip tooltip-left">
393
  <strong>Exercise Needs:</strong><br>
394
  • Low: Short walks and play sessions<br>
395
  • Moderate: 1-2 hours of daily activity<br>
 
769
  position: absolute;
770
  z-index: 100;
771
  bottom: 130%;
772
+ left: -100px;
 
773
  opacity: 0;
774
  transition: all 0.3s ease;
775
  font-size: 14px;
 
778
  border: 1px solid rgba(255, 255, 255, 0.1);
779
  }}
780
 
781
+ .tooltip.tooltip-left .tooltip-text {{
782
+ left: 0;
783
+ }}
784
+
785
  .tooltip.tooltip-right .tooltip-text {{
786
  left: auto;
787
  right: 0;