loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove some transition related code (#26755)

Remove transition related code because the transition module has been
removed by #26469

authored by

wxiaoguang and committed by
GitHub
67daa7bc c5339915

+2 -10
+2 -2
templates/repo/clone_buttons.tmpl
··· 1 1 <!-- there is always at least one button (by context/repo.go) --> 2 2 {{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}}"> 4 4 HTTPS 5 5 </button> 6 6 {{end}} 7 7 {{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}}"> 9 9 SSH 10 10 </button> 11 11 {{end}}
-2
web_src/css/helpers.css
··· 105 105 .gt-border-secondary-left { border-left: 1px solid var(--color-secondary) !important; } 106 106 .gt-border-secondary-right { border-right: 1px solid var(--color-secondary) !important; } 107 107 108 - .gt-no-transition { transition: none !important; } 109 - 110 108 .gt-bg-red { background: var(--color-red) !important; } 111 109 .gt-bg-orange { background: var(--color-orange) !important; } 112 110 .gt-bg-yellow { background: var(--color-yellow) !important; }
-6
web_src/js/features/repo-common.js
··· 53 53 return; 54 54 } 55 55 56 - // restore animation after first init 57 - setTimeout(() => { 58 - $repoCloneSsh.removeClass('gt-no-transition'); 59 - $repoCloneHttps.removeClass('gt-no-transition'); 60 - }, 100); 61 - 62 56 $repoCloneSsh.on('click', () => { 63 57 localStorage.setItem('repo-clone-protocol', 'ssh'); 64 58 window.updateCloneStates();