Spaces:
Sleeping
Sleeping
Commit History
-
Remove OAuth-iframe Open Direct Link helper (restore cloud upload icon)
Verified signature## What Removes the "OAuth iframe helper" from `src/small_cuts/viewer.py` — the `.sc-iframe-warn` CSS and a JS block (guarded by `window.self !== window.top`) that injected a "Open Direct Link" anchor into the `.sc-upload-auth` topbar row. ## Why Inside Hugging Face's iframe embed, that injected anchor added an extra flex child to `.sc-upload-auth`, squishing the cloud upload icon so it rendered as a thin vertical "stick" (plus visual clutter). Removing it restores a clean cloud upload icon. ## Verification - Iframe repro (app embedded so `window.self !== window.top`, the exact HF condition): no `.sc-iframe-warn` injected, upload icon renders 36x36 with the `sc-ico-upload` cloud mask, no console errors. - `ruff check` / `ruff format --check` pass; `tests/test_viewer.py` 66/66 pass (incl. `test_upload_auth_ui_swaps_signin_for_upload_icon`, so `visible=True` is preserved). - Two independent reviews: clean, purely subtractive, no dangling references, Lane A (upload->Modal) and playback …c44b190
-
Upload folder using huggingface_hub
Verified signature9455e9e -
Upload folder using huggingface_hub
Verified signature298f9ba -
Upload folder using huggingface_hub
Verified signature24e5b39