diff options
author | puni9869 <80308335+puni9869@users.noreply.github.com> | 2023-07-28 22:42:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 13:12:44 -0400 |
commit | 1d8d90fd3727ffdf0500c8dd474b85e0c285d064 (patch) | |
tree | 0707589d9c345fd0d567140d92ce1444f4fd3a7b | |
parent | ce27de4d486884745bd944c56fc0365b2d588e54 (diff) | |
download | gitea-1d8d90fd3727ffdf0500c8dd474b85e0c285d064.tar.gz gitea-1d8d90fd3727ffdf0500c8dd474b85e0c285d064.zip |
Fixing the align of commit stats in commit_page template. (#26161)
Fixing the align center to row and space around for commit_page
template.
-rw-r--r-- | templates/repo/diff/box.tmpl | 4 | ||||
-rw-r--r-- | web_src/css/repo.css | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 1bc79ad2ab..72e6731254 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -1,5 +1,5 @@ <div> - <div class="diff-detail-box diff-box sticky gt-df gt-sb gt-ac gt-fw"> + <div class="diff-detail-box diff-box sticky gt-df gt-sb gt-ac"> <div class="gt-df gt-ac gt-fw"> {{if not .DiffNotAvailable}} <button class="diff-toggle-file-tree-button gt-df gt-ac not-mobile" data-show-text="{{.locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{.locale.Tr "repo.diff.hide_file_tree"}}"> @@ -82,7 +82,7 @@ {{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}} {{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}} {{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived)}} - <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} gt-mt-3" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}> + <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} gt-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}> <h4 class="diff-file-header sticky-2nd-row ui top attached normal header gt-df gt-ac gt-sb gt-fw"> <div class="diff-file-name gt-df gt-ac gt-gap-2 gt-fw"> <button class="fold-file btn interact-bg gt-p-2{{if not $isExpandable}} gt-invisible{{end}}"> diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 6cd7c2537e..04cb4eed2d 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1594,7 +1594,7 @@ @media (max-width: 991.98px) { .repository .diff-detail-box { - flex-direction: column; + flex-direction: row; align-items: flex-start; } } |