Skip to content

Commit 67daa7b

Browse files
authored
Remove some transition related code (#26755)
Remove transition related code because the transition module has been removed by #26469
1 parent c533991 commit 67daa7b

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

templates/repo/clone_buttons.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!-- there is always at least one button (by context/repo.go) -->
22
{{if $.CloneButtonShowHTTPS}}
3-
<button class="ui small compact clone button gt-no-transition" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
3+
<button class="ui small compact clone button" id="repo-clone-https" data-link="{{$.CloneButtonOriginLink.HTTPS}}">
44
HTTPS
55
</button>
66
{{end}}
77
{{if $.CloneButtonShowSSH}}
8-
<button class="ui small compact clone button gt-no-transition" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
8+
<button class="ui small compact clone button" id="repo-clone-ssh" data-link="{{$.CloneButtonOriginLink.SSH}}">
99
SSH
1010
</button>
1111
{{end}}

web_src/css/helpers.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ Gitea's private styles use `g-` prefix.
105105
.gt-border-secondary-left { border-left: 1px solid var(--color-secondary) !important; }
106106
.gt-border-secondary-right { border-right: 1px solid var(--color-secondary) !important; }
107107

108-
.gt-no-transition { transition: none !important; }
109-
110108
.gt-bg-red { background: var(--color-red) !important; }
111109
.gt-bg-orange { background: var(--color-orange) !important; }
112110
.gt-bg-yellow { background: var(--color-yellow) !important; }

web_src/js/features/repo-common.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ export function initRepoCloneLink() {
5353
return;
5454
}
5555

56-
// restore animation after first init
57-
setTimeout(() => {
58-
$repoCloneSsh.removeClass('gt-no-transition');
59-
$repoCloneHttps.removeClass('gt-no-transition');
60-
}, 100);
61-
6256
$repoCloneSsh.on('click', () => {
6357
localStorage.setItem('repo-clone-protocol', 'ssh');
6458
window.updateCloneStates();

0 commit comments

Comments
 (0)