Skip to content

Improve element gallery header#6239

Merged
bmarty merged 2 commits intodevelopfrom
feature/bma/improveElementGallery
Feb 23, 2026
Merged

Improve element gallery header#6239
bmarty merged 2 commits intodevelopfrom
feature/bma/improveElementGallery

Conversation

@bmarty
Copy link
Member

@bmarty bmarty commented Feb 23, 2026

Content

Improve element gallery header.

Now that we have many supported languages, the header is not rendering nicely, see how https://element-hq.github.io/element-x-android is rendering now:

image

This PR groups the language into a dropbox, as per below:

image image

Also this PR add a click to copy URL to ease sharing element from the gallery per URL.

Node: code change with the help of Gemini.

Motivation and context

Give a little bit of love to Element Gallery

Screenshots / GIFs

See above

Tests

  • Open ./screenshots/index.html and see the change on the header
  • Click on an image and observe that the url is copied
  • Click on an image name (header) and observe that the url is copied

Hopefully the effect will be more visible on the next full element gallery generation

Tested devices

  • Firefox

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

@bmarty bmarty requested a review from a team as a code owner February 23, 2026 15:50
@bmarty bmarty requested review from ganfra and removed request for a team February 23, 2026 15:50
@bmarty bmarty added the PR-Misc For other changes label Feb 23, 2026
@github-actions
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/cJ2w7s

@sonarqubecloud
Copy link

Copy link
Member

@ganfra ganfra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM I guess!

@bmarty bmarty merged commit 920ea9a into develop Feb 23, 2026
37 of 38 checks passed
@bmarty bmarty deleted the feature/bma/improveElementGallery branch February 23, 2026 16:58
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.42%. Comparing base (82ef2e0) to head (501d066).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6239   +/-   ##
========================================
  Coverage    81.42%   81.42%           
========================================
  Files         2570     2570           
  Lines        69798    69798           
  Branches      8950     8950           
========================================
  Hits         56833    56833           
  Misses        9645     9645           
  Partials      3320     3320           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR-Misc For other changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants