Skip to content

Commit 4b907da

Browse files
committed
style dropdown
1 parent 44a9d72 commit 4b907da

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

templates/repo/branch_dropdown.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969

7070
<div class="js-branch-tag-selector {{if .ContainerClasses}}{{.ContainerClasses}}{{end}}">
7171
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
72-
<div class="ui dropdown custom">
73-
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button gt-df gt-m-0">
72+
<div class="ui dropdown custom tw-w-full tw-h-full">
73+
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button gt-df gt-sb gt-m-0 tw-w-full tw-h-full">
7474
<span class="text gt-df gt-ac gt-mr-2">
7575
{{if .release}}
7676
{{ctx.Locale.Tr "repo.release.compare"}}
@@ -80,7 +80,7 @@
8080
{{else}}
8181
{{svg "octicon-git-branch"}}
8282
{{end}}
83-
<strong ref="dropdownRefName" class="gt-ml-3">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong>
83+
<strong ref="dropdownRefName" class="gt-ml-3 gt-ellipsis">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong>
8484
{{end}}
8585
</span>
8686
{{svg "octicon-triangle-down" 14 "dropdown icon"}}

web_src/css/repo.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,23 +2923,6 @@ tbody.commit-list {
29232923
}
29242924
}
29252925

2926-
.branch-dropdown-button {
2927-
max-width: 340px;
2928-
vertical-align: bottom !important;
2929-
}
2930-
2931-
@media (min-width: 768px) and (max-width: 991.98px) {
2932-
.branch-dropdown-button {
2933-
max-width: 185px;
2934-
}
2935-
}
2936-
2937-
@media (max-width: 767.98px) {
2938-
.branch-dropdown-button {
2939-
max-width: 165px;
2940-
}
2941-
}
2942-
29432926
.commit-status-header {
29442927
/* reset the default ".ui.attached.header" styles, to use the outer border */
29452928
border: none !important;

0 commit comments

Comments
 (0)