Skip to content

Commit

Permalink
no need to use the legacy "repo-button-row" tricks since there is onl…
Browse files Browse the repository at this point in the history
…y one "clone" button
  • Loading branch information
wxiaoguang committed Dec 11, 2024
1 parent f21728b commit 2941584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 1 addition & 2 deletions templates/repo/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@
{{end}}
</div>

{{/* 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 */}}
<div class="repo-button-row-right {{if not $isTreePathRoot}}tw-flex-grow-0{{end}}">
<div class="repo-button-row-right">
<!-- Only show clone panel in repository home page -->
{{if $isTreePathRoot}}
{{template "repo/clone_panel" .}}
Expand Down
8 changes: 0 additions & 8 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,6 @@ td .commit-summary {
.repo-button-row-left,
.repo-button-row-right {
display: flex;
flex: 1;
align-items: center;
gap: 0.5rem;
}
Expand All @@ -1677,13 +1676,6 @@ td .commit-summary {
justify-content: flex-end;
}

@media (max-width: 1200px) {
.repository:not(.wiki) .repo-button-row {
flex-direction: column;
align-items: stretch;
}
}

.repo-button-row .button {
padding: 6px 10px !important;
height: 30px;
Expand Down

0 comments on commit 2941584

Please sign in to comment.