DawnC commited on
Commit
ee24b26
·
1 Parent(s): 52ed6e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -3
app.py CHANGED
@@ -762,7 +762,7 @@ async def predict(image):
762
  color: white;
763
  text-align: left;
764
  border-radius: 8px;
765
- padding: 10px;
766
  position: absolute;
767
  z-index: 100;
768
  bottom: 150%;
@@ -771,7 +771,7 @@ async def predict(image):
771
  opacity: 0;
772
  transition: all 0.3s ease;
773
  font-size: 14px;
774
- line-height: 1.6;
775
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
776
  border: 1px solid rgba(255, 255, 255, 0.1)
777
  margin-bottom: 10px;
@@ -792,7 +792,23 @@ async def predict(image):
792
  color: white !important;
793
  background-color: transparent !important;
794
  display: block; /* 讓標題獨立一行 */
795
- margin-bottom: 4px; /* 增加標題下方間距 */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  }}
797
 
798
  .tooltip-text br {{
 
762
  color: white;
763
  text-align: left;
764
  border-radius: 8px;
765
+ padding: 8px 10px;
766
  position: absolute;
767
  z-index: 100;
768
  bottom: 150%;
 
771
  opacity: 0;
772
  transition: all 0.3s ease;
773
  font-size: 14px;
774
+ line-height: 1.3;
775
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
776
  border: 1px solid rgba(255, 255, 255, 0.1)
777
  margin-bottom: 10px;
 
792
  color: white !important;
793
  background-color: transparent !important;
794
  display: block; /* 讓標題獨立一行 */
795
+ margin-bottom: 2px; /* 增加標題下方間距 */
796
+ padding-bottom: 2px; /* 加入小間距 */
797
+ border-bottom: 1px solid rgba(255,255,255,0.2);
798
+ }}
799
+
800
+ .tooltip-text {{
801
+ font-size: 13px; /* 稍微縮小字體 */
802
+ }}
803
+
804
+ /* 調整列表符號和文字的間距 */
805
+ .tooltip-text ul {{
806
+ margin: 0;
807
+ padding-left: 15px; /* 減少列表符號的縮進 */
808
+ }}
809
+
810
+ .tooltip-text li {{
811
+ margin-bottom: 1px; /* 減少列表項目間的間距 */
812
  }}
813
 
814
  .tooltip-text br {{