From 67daa7bcb0cfd3cd7e5efa8667021a7e422f4bdf Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 28 Aug 2023 09:26:23 +0800 Subject: [PATCH] Remove some transition related code (#26755) Remove transition related code because the transition module has been removed by #26469 --- templates/repo/clone_buttons.tmpl | 4 ++-- web_src/css/helpers.css | 2 -- web_src/js/features/repo-common.js | 6 ------ 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 8f5b63128a..9f008ff5d2 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -1,11 +1,11 @@ {{if $.CloneButtonShowHTTPS}} - {{end}} {{if $.CloneButtonShowSSH}} - {{end}} diff --git a/web_src/css/helpers.css b/web_src/css/helpers.css index f832eff786..27b32139ba 100644 --- a/web_src/css/helpers.css +++ b/web_src/css/helpers.css @@ -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; } diff --git a/web_src/js/features/repo-common.js b/web_src/js/features/repo-common.js index d99a1a8da0..755f2a0653 100644 --- a/web_src/js/features/repo-common.js +++ b/web_src/js/features/repo-common.js @@ -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();