mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Remove some transition related code (#26755)
Remove transition related code because the transition module has been removed by #26469
This commit is contained in:
		@@ -1,11 +1,11 @@
 | 
				
			|||||||
<!-- there is always at least one button (by context/repo.go) -->
 | 
					<!-- there is always at least one button (by context/repo.go) -->
 | 
				
			||||||
{{if $.CloneButtonShowHTTPS}}
 | 
					{{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
 | 
							HTTPS
 | 
				
			||||||
	</button>
 | 
						</button>
 | 
				
			||||||
{{end}}
 | 
					{{end}}
 | 
				
			||||||
{{if $.CloneButtonShowSSH}}
 | 
					{{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
 | 
							SSH
 | 
				
			||||||
	</button>
 | 
						</button>
 | 
				
			||||||
{{end}}
 | 
					{{end}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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-left { border-left: 1px solid var(--color-secondary) !important; }
 | 
				
			||||||
.gt-border-secondary-right { border-right: 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-red { background: var(--color-red) !important; }
 | 
				
			||||||
.gt-bg-orange { background: var(--color-orange) !important; }
 | 
					.gt-bg-orange { background: var(--color-orange) !important; }
 | 
				
			||||||
.gt-bg-yellow { background: var(--color-yellow) !important; }
 | 
					.gt-bg-yellow { background: var(--color-yellow) !important; }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,12 +53,6 @@ export function initRepoCloneLink() {
 | 
				
			|||||||
    return;
 | 
					    return;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // restore animation after first init
 | 
					 | 
				
			||||||
  setTimeout(() => {
 | 
					 | 
				
			||||||
    $repoCloneSsh.removeClass('gt-no-transition');
 | 
					 | 
				
			||||||
    $repoCloneHttps.removeClass('gt-no-transition');
 | 
					 | 
				
			||||||
  }, 100);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  $repoCloneSsh.on('click', () => {
 | 
					  $repoCloneSsh.on('click', () => {
 | 
				
			||||||
    localStorage.setItem('repo-clone-protocol', 'ssh');
 | 
					    localStorage.setItem('repo-clone-protocol', 'ssh');
 | 
				
			||||||
    window.updateCloneStates();
 | 
					    window.updateCloneStates();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user