]> source.dussan.org Git - gitea.git/commit
Various improvements for long file and commit names (#30374) (#30386)
authorGiteabot <teabot@gitea.io>
Wed, 10 Apr 2024 06:56:21 +0000 (14:56 +0800)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 06:56:21 +0000 (08:56 +0200)
commit6c5b088aa46a5e058d88ac4cb4e3b06be88348e9
treec17e7cfa3fc1115075365e87eb3fe6551e75d6f7
parent88b3d192a0663bd5f25ffa07af45179bac755150
Various improvements for long file and commit names (#30374) (#30386)

Backport #30374 by @silverwind

Fixes: https://github.com/go-gitea/gitea/issues/29438
This contains numerous enhancements for how large commit messages and
large filenames render. Another notable change is that the file path is
no longer cut off by backend at 30 chars, but rendered in full with
wrapping.

<img width="1329" alt="Screenshot 2024-04-09 at 21 53 57"
src="https://github.com/go-gitea/gitea/assets/115237/5ccbb3d6-643a-4f60-ba79-3572b36d5182">
<hr>
<img width="711" alt="Screenshot 2024-04-09 at 21 44 24"
src="https://github.com/go-gitea/gitea/assets/115237/6ffe8fbb-407c-4aa7-b591-3d80daea7d57">
<hr>
<img width="439" alt="Screenshot 2024-04-09 at 21 19 03"
src="https://github.com/go-gitea/gitea/assets/115237/1ec7f6e9-2fd8-4841-87eb-6ca02ab9cd61">
<hr>
<img width="444" alt="Screenshot 2024-04-09 at 21 18 52"
src="https://github.com/go-gitea/gitea/assets/115237/70931b9e-5841-477e-b3bc-98f8d2662964">

Co-authored-by: silverwind <me@silverwind.io>
templates/repo/commit_page.tmpl
templates/repo/diff/box.tmpl
templates/repo/home.tmpl
templates/repo/view_file.tmpl
templates/repo/view_list.tmpl
web_src/css/base.css
web_src/css/modules/container.css
web_src/css/repo.css