arkai2025 Claude Opus 4.8 (1M context) commited on
Commit
6fcbae2
·
1 Parent(s): 82de371

fix(share): restore visible labels on the action pills (white-on-white)

Browse files

Save GIF / Share image / Voxel data are client-built <button>s, so Gradio's
theme paints them with --button-secondary-background-fill (white); our
non-!important background lost to it, leaving the white .l label invisible on a
white pill. Mark the pill backgrounds !important (base + .save/.native, and add
an explicit .voxel) so they beat the theme and the labels read again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. src/buddy_fusion/fusion_ui.py +7 -3
src/buddy_fusion/fusion_ui.py CHANGED
@@ -126,12 +126,16 @@ CSS = (
126
  ".buddy-share-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;}"
127
  # Action pills (native share / save gif): icon + readable white label.
128
  ".buddy-share-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:999px;border:none;cursor:pointer;"
129
- "font-weight:800;font-size:.95rem;line-height:1;text-decoration:none;color:#fff!important;background:#5a93c7;box-shadow:0 6px 16px #5a93c733;"
 
 
 
130
  "transition:transform .12s,box-shadow .12s;}"
131
  ".buddy-share-btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px #5a93c744;}"
132
  ".buddy-share-btn .i{font-weight:900;}.buddy-share-btn .l{color:#fff!important;}"
133
- ".buddy-share-btn.save{background:linear-gradient(90deg,#ff7a18,#ff4d8d);}"
134
- ".buddy-share-btn.native{background:linear-gradient(90deg,#62b6f0,#3a7fd6);}"
 
135
  # Social icon circles: icon-only, equal-size, high-contrast brand colours.
136
  ".buddy-share-btn.icon{width:46px;height:46px;padding:0;border-radius:50%;justify-content:center;align-items:center;"
137
  "font-size:1.25rem;font-weight:900;}"
 
126
  ".buddy-share-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;}"
127
  # Action pills (native share / save gif): icon + readable white label.
128
  ".buddy-share-btn{display:inline-flex;align-items:center;gap:7px;padding:10px 16px;border-radius:999px;border:none;cursor:pointer;"
129
+ # background needs !important: these action pills are real <button>s, and Gradio's
130
+ # theme paints <button> with --button-secondary-background-fill (white) — without
131
+ # !important it wins, leaving white-on-white (the label vanished). See gradio-theme-locking.
132
+ "font-weight:800;font-size:.95rem;line-height:1;text-decoration:none;color:#fff!important;background:#5a93c7!important;box-shadow:0 6px 16px #5a93c733;"
133
  "transition:transform .12s,box-shadow .12s;}"
134
  ".buddy-share-btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px #5a93c744;}"
135
  ".buddy-share-btn .i{font-weight:900;}.buddy-share-btn .l{color:#fff!important;}"
136
+ ".buddy-share-btn.save{background:linear-gradient(90deg,#ff7a18,#ff4d8d)!important;}"
137
+ ".buddy-share-btn.native{background:linear-gradient(90deg,#62b6f0,#3a7fd6)!important;}"
138
+ ".buddy-share-btn.voxel{background:linear-gradient(90deg,#7a5cff,#3a7fd6)!important;}"
139
  # Social icon circles: icon-only, equal-size, high-contrast brand colours.
140
  ".buddy-share-btn.icon{width:46px;height:46px;padding:0;border-radius:50%;justify-content:center;align-items:center;"
141
  "font-size:1.25rem;font-weight:900;}"