aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-07-08 17:53:56 +0800
committerGitHub <noreply@github.com>2023-07-08 11:53:56 +0200
commitcc00fd50f31c819bf575cbf4a48a4bf8bf2a340e (patch)
tree3d80d0855be0c7d55aa575a906c49bb4590b5c01 /web_src/js
parent62f3c0fe76f215cbe88b1a76408b09d74ad14f92 (diff)
downloadgitea-cc00fd50f31c819bf575cbf4a48a4bf8bf2a340e.tar.gz
gitea-cc00fd50f31c819bf575cbf4a48a4bf8bf2a340e.zip
Clarify "text-align" CSS helpers, fix clone button padding (#25763)
Changes: * Rename gt-tl/gt-tc/gt-tr to gt-text-left/gt-text-center/gt-text-right * The gt-ab and gt-br-0 are removed because they are not needed anymore * Fix the clone dropdown button padding by ":not(.icon)" Before: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/eb030633-622c-4ca7-8e88-ce010d9f51a6) </details> After: <details> ![image](https://github.com/go-gitea/gitea/assets/2114189/64c09403-bf21-439c-88f1-780b34ccab6b) </details> Fixes #25758 Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/common-global.js2
-rw-r--r--web_src/js/features/repo-issue-content.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js
index a99b29141d..8ee5ce25bf 100644
--- a/web_src/js/features/common-global.js
+++ b/web_src/js/features/common-global.js
@@ -237,7 +237,7 @@ export function initGlobalDropzone() {
// Create a "Copy Link" element, to conveniently copy the image
// or file link as Markdown to the clipboard
const copyLinkElement = document.createElement('div');
- copyLinkElement.className = 'gt-tc';
+ copyLinkElement.className = 'gt-text-center';
// The a element has a hardcoded cursor: pointer because the default is overridden by .dropzone
copyLinkElement.innerHTML = `<a href="#" style="cursor: pointer;">${svg('octicon-copy', 14, 'copy link')} Copy link</a>`;
copyLinkElement.addEventListener('click', (e) => {
diff --git a/web_src/js/features/repo-issue-content.js b/web_src/js/features/repo-issue-content.js
index fc916aea19..3ada166c5b 100644
--- a/web_src/js/features/repo-issue-content.js
+++ b/web_src/js/features/repo-issue-content.js
@@ -24,7 +24,7 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH
</div>
</div>
</div>
- <div class="comment-diff-data gt-tl gt-p-3 is-loading"></div>
+ <div class="comment-diff-data gt-text-left gt-p-3 is-loading"></div>
</div>`);
$dialog.appendTo($('body'));
$dialog.find('.dialog-header-options').dropdown({