Skip to content

Commit c48f857

Browse files
GustedGusted
authored andcommitted
fix: avoid y-axis clipping for branch name (#6817)
- `gt-ellipsis` is set on elements to avoid overflowing its text contents and in the case of overflowing it would show an ellipsis. To force it to not overflow `overflow: hidden` is set, however this also hides the overflow on the y-axis, `overflow-x: hidden` has the same behavior. - To avoid avoid the branch name from being clipped, add a very small amount of padding on the y-axis. This is a workaround and not a proper solution. There does not seem a good cross-platform solution available to fix this in a proper way. - Resolves forgejo/forgejo#6811 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6817 Reviewed-by: 0ko <[email protected]> Co-authored-by: Gusted <[email protected]> Co-committed-by: Gusted <[email protected]>
1 parent b7065b7 commit c48f857

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web_src/css/repo.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,6 +2402,11 @@ details.repo-search-result summary::marker {
24022402
padding-right: 22px !important; /* normal buttons have !important paddings, so we need to override it for dropdown (Add File) icons */
24032403
}
24042404

2405+
.repo-button-row .button strong {
2406+
/* Workaround where 'overflow: hidden' is clipping the y-axis, force a small amount of extra padding in the y-axis. */
2407+
padding: .1em 0;
2408+
}
2409+
24052410
.repo-button-row input {
24062411
height: 30px;
24072412
}

0 commit comments

Comments
 (0)