From 7e4619df83b1269dc074ea2f7102b6424cbd3152 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Sat, 7 Feb 2026 19:15:14 +0100 Subject: [PATCH] feat(ui): responsive releases list (#11080) ## Changes I've made releases list more usable on narrow viewports while trying keep the layout unchanged for desktop viewports. To support these changes large amount of Tailwind classes were converted to regular CSS to be applied conditionally via `@media`. While it was possible to just adjust the Tailwind classes to achieve the same behavior, there's a positive effect which is that the repeating HTML of releases generated by template's range is much less verbose and contains fewer long duplicated lines of Tailwind classes. ## Preview ### Desktop Not much changed, but the dot between tag and release name is no more. |Before|After| |-|-| |![bd](/attachments/a87bf050-03ba-4035-8a0e-7ab4f6e877a2)|![2d](/attachments/e0c2e052-01c6-4078-b06e-f8ef7b803690)| ### Mobile |Before|After| |-|-| |![bm](/attachments/f63a606f-f3f8-435d-8378-0979e93cf7bd)|![2m](/attachments/0cb6086d-1def-4a86-bb0e-4131e50aae3b)| Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11080 Reviewed-by: Gusted Reviewed-by: Beowulf --- templates/repo/release/list.tmpl | 66 ++++---- templates/repo/release_tag_header.tmpl | 6 +- tests/e2e/release.test.e2e.ts | 43 ++++- tests/integration/release_test.go | 18 +- tests/integration/repo_tag_test.go | 8 +- web_src/css/repo.css | 25 --- web_src/css/repo/release-tag.css | 218 +++++++++++++++++-------- 7 files changed, 243 insertions(+), 141 deletions(-) diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index 9520e5eb6c..cc9610c77c 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -7,35 +7,38 @@