feat: add alt text extraction from URLs for images and improve CSS variable usage for progress bars
DevPlace CI / test (push) Successful in 32m28s
DevPlace CI / test (push) Successful in 32m28s
Add `_alt_from_url` helper in Python rendering and `altFromUrl` in JS ContentRenderer to generate descriptive alt attributes from image filenames, replacing empty alt strings. Update image embed templates and Avatar component to use derived alt text. Migrate inline `style.width` assignments to CSS custom properties (`--poll-pct`, `--hud-xp`, `--quest-pct`, `--bar-pct`, `--quota-pct`) across PollManager, GameFarm, and profile/quest CSS for better maintainability. Introduce new admin, docs, projects, services, and base CSS utility classes. Add "Code Farm" docs page entry.
This commit is contained in:
+1
-1
@@ -747,7 +747,7 @@ def test_feed_guest_inline_comment_disabled(page, app_server):
|
||||
def test_leaderboard_nav_link(alice):
|
||||
page, _ = alice
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
assert page.is_visible("a.topnav-link:has-text('Leaderboard')")
|
||||
assert page.is_visible("a.topnav-icon[href='/leaderboard']")
|
||||
|
||||
|
||||
def test_mobile_hamburger_nav(alice):
|
||||
|
||||
Reference in New Issue
Block a user