Browse Source

Remove some transition related code (#26755)

Remove transition related code because the transition module has been
removed by #26469
tags/v1.21.0-rc0
wxiaoguang 10 months ago
parent
commit
67daa7bcb0
No account linked to committer's email address
3 changed files with 2 additions and 10 deletions
  1. 2
    2
      templates/repo/clone_buttons.tmpl
  2. 0
    2
      web_src/css/helpers.css
  3. 0
    6
      web_src/js/features/repo-common.js

+ 2
- 2
templates/repo/clone_buttons.tmpl View File

@@ -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}}

+ 0
- 2
web_src/css/helpers.css View File

@@ -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; }

+ 0
- 6
web_src/js/features/repo-common.js View File

@@ -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();

Loading…
Cancel
Save