fix(ui): improve signature box responsiveness (#8984)

This PR improves the row/box with signature information used on commit and tag pages: [commit example](096a03eb42), [tag example](https://codeberg.org/forgejo/forgejo/releases/tag/v1.4.0-rc2). It improves padding consistency, mainly on mobile, and cleans up code a bit. Instead of relying on min-height the box now uses paddings so overflown text is never too close to borders.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8984
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
0ko 2025-09-11 16:20:36 +02:00 committed by Gusted
commit 62f2515138
6 changed files with 13 additions and 18 deletions

View file

@ -1972,21 +1972,16 @@ details.repo-search-result summary::marker {
padding-top: 15px;
}
.commit-header-row,
.tag-signature-row {
.commit-header-row {
min-height: 50px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.ui.attached.message.tag-signature-row {
border-radius: var(--border-radius);
}
.tag-signature-row div {
margin-top: auto !important;
margin-bottom: auto !important;
display: inline-block !important;
.signature-row {
display: flex;
flex-wrap: wrap;
padding: 0.75rem 1rem !important;
gap: 0.5rem 1rem;
justify-content: space-between;
}
.commit-header-buttons {