Skip to content

Commit

Permalink
Remove some transition related code (#26755)
Browse files Browse the repository at this point in the history
Remove transition related code because the transition module has been
removed by #26469
  • Loading branch information
wxiaoguang authored Aug 28, 2023
1 parent c533991 commit 67daa7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions templates/repo/clone_buttons.tmpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- there is always at least one button (by context/repo.go) -->
{{if $.CloneButtonShowHTTPS}}
<button class="ui small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
<button class="ui small compact clone button" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
HTTPS
</button>
{{end}}
{{if $.CloneButtonShowSSH}}
<button class="ui small compact clone button gt-no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
<button class="ui small compact clone button" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
SSH
</button>
{{end}}
Expand Down
2 changes: 0 additions & 2 deletions web_src/css/helpers.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ Gitea's private styles use `g-` prefix.
.gt-border-secondary-left { border-left: 1px solid var(--color-secondary) !important; }
.gt-border-secondary-right { border-right: 1px solid var(--color-secondary) !important; }

.gt-no-transition { transition: none !important; }

.gt-bg-red { background: var(--color-red) !important; }
.gt-bg-orange { background: var(--color-orange) !important; }
.gt-bg-yellow { background: var(--color-yellow) !important; }
Expand Down
6 changes: 0 additions & 6 deletions web_src/js/features/repo-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ export function initRepoCloneLink() {
return;
}

// restore animation after first init
setTimeout(() => {
$repoCloneSsh.removeClass('gt-no-transition');
$repoCloneHttps.removeClass('gt-no-transition');
}, 100);

$repoCloneSsh.on('click', () => {
localStorage.setItem('repo-clone-protocol', 'ssh');
window.updateCloneStates();
Expand Down

0 comments on commit 67daa7b

Please sign in to comment.