Skip to content

Commit bf2a72d

Browse files
authored
Expand "Go to File" button again, fix 'Add File' margin (#21543)
With #21428 we gained some space so we are again able to show the "Go to File" button as text instead of icon-only (the old icon was not particularily fitting anyways). Before: <img width="328" alt="image" src="https://user-images.githubusercontent.com/115237/197334423-07731d9d-bf26-4aeb-95fa-490d9d0bf2a2.png"> After: <img width="339" alt="Screen Shot 2022-10-22 at 12 28 01" src="https://user-images.githubusercontent.com/115237/197334383-467c4107-09c9-4881-b75f-7f403eab7f3a.png"> <img width="413" alt="Screen Shot 2022-10-22 at 12 28 16" src="https://user-images.githubusercontent.com/115237/197334384-f7d1fdda-a011-4138-ad1e-b52fc987501f.png">
1 parent 578b43d commit bf2a72d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

templates/repo/home.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<button id="new-pull-request" class="ui compact basic button tooltip" data-content="{{if .PullRequestCtx.Allowed}}{{.locale.Tr "repo.pulls.compare_changes"}}{{else}}{{.locale.Tr "action.compare_branch"}}{{end}}"><span class="text">{{svg "octicon-git-pull-request"}}</span></button>
7575
</a>
7676
{{end}}
77-
<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button tooltip" data-content="{{.locale.Tr "repo.find_file.go_to_file"}}">{{svg "octicon-file-moved" 15}}</a>
77+
<a href="{{.Repository.Link}}/find/{{.BranchNameSubURL}}" class="ui compact basic button">{{.locale.Tr "repo.find_file.go_to_file"}}</a>
7878
{{end}}
7979
{{if or .CanAddFile .CanUploadFile}}
8080
<button class="ui basic small compact dropdown jump icon button mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}>

web_src/less/_repository.less

+5
Original file line numberDiff line numberDiff line change
@@ -2804,6 +2804,11 @@
28042804
margin-top: 10px;
28052805
}
28062806

2807+
.repo-button-row .dropdown > .dropdown.icon {
2808+
margin-left: .25rem !important;
2809+
margin-right: 0 !important;
2810+
}
2811+
28072812
.wiki .repo-button-row {
28082813
margin-bottom: 0;
28092814
}

0 commit comments

Comments
 (0)