Skip to content

Commit 2941584

Browse files
committed
no need to use the legacy "repo-button-row" tricks since there is only one "clone" button
1 parent f21728b commit 2941584

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

templates/repo/home.tmpl

+1-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@
102102
{{end}}
103103
</div>
104104

105-
{{/* by default, the row-right flex grows, but on non-root tree path, it should not because the row-left might contain a long path */}}
106-
<div class="repo-button-row-right {{if not $isTreePathRoot}}tw-flex-grow-0{{end}}">
105+
<div class="repo-button-row-right">
107106
<!-- Only show clone panel in repository home page -->
108107
{{if $isTreePathRoot}}
109108
{{template "repo/clone_panel" .}}

web_src/css/repo.css

-8
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,6 @@ td .commit-summary {
16681668
.repo-button-row-left,
16691669
.repo-button-row-right {
16701670
display: flex;
1671-
flex: 1;
16721671
align-items: center;
16731672
gap: 0.5rem;
16741673
}
@@ -1677,13 +1676,6 @@ td .commit-summary {
16771676
justify-content: flex-end;
16781677
}
16791678

1680-
@media (max-width: 1200px) {
1681-
.repository:not(.wiki) .repo-button-row {
1682-
flex-direction: column;
1683-
align-items: stretch;
1684-
}
1685-
}
1686-
16871679
.repo-button-row .button {
16881680
padding: 6px 10px !important;
16891681
height: 30px;

0 commit comments

Comments
 (0)