diff --git a/styles/templates/repo/view_content.ts b/styles/templates/repo/view_content.ts index 0b4bd6a..ea5eb40 100644 --- a/styles/templates/repo/view_content.ts +++ b/styles/templates/repo/view_content.ts @@ -5,9 +5,6 @@ export const repoButtonRow = css` // 仓库按钮行 &.repo-button-row { margin: 0 0 16px 0; - .ui.button.compact.basic:not(.dropdown):not(.jump) { - padding: 0px 10px; - } .repo-button-row-left .repository-summary { > .item { display: inline-flex; diff --git a/templates/repo/view_content.tmpl b/templates/repo/view_content.tmpl index fbe6908..cdf7825 100644 --- a/templates/repo/view_content.tmpl +++ b/templates/repo/view_content.tmpl @@ -24,19 +24,6 @@ "ShowViewAllRefsEntry" true }} - {{if and .CanCompareOrPull .RefFullName.IsBranch (not .Repository.IsArchived)}} - {{$cmpBranch := ""}} - {{if ne .Repository.ID .BaseRepo.ID}} - {{$cmpBranch = printf "%s/%s:" (.Repository.OwnerName|PathEscape) (.Repository.Name|PathEscape)}} - {{end}} - {{$cmpBranch = print $cmpBranch (.BranchName|PathEscapeSegments)}} - {{$compareLink := printf "%s/compare/%s...%s" .BaseRepo.Link (.BaseRepo.DefaultBranch|PathEscapeSegments) $cmpBranch}} - - {{svg "octicon-git-pull-request"}} - - {{end}} - {{if and $isTreePathRoot (.Permission.CanRead ctx.Consts.RepoUnitTypeCode) (not .IsEmptyRepo)}}
@@ -70,9 +57,7 @@
{{if $isTreePathRoot}} - - {{svg "octicon-search" 16}} - + {{ctx.Locale.Tr "repo.find_file.go_to_file"}} {{end}} {{if and .RefFullName.IsBranch (not .IsViewFile)}}