diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-31 18:49:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 10:49:53 +0000 |
commit | d5703d4a1bab58234c9e8e0e0e78c0cd26a90dce (patch) | |
tree | 1f96646ec1fd0a14064970331f6cd19757666950 /web_src/js/features/repo-legacy.js | |
parent | 5b5bb8d3546e6504b689b01d3ac4897dda3aee3d (diff) | |
download | gitea-d5703d4a1bab58234c9e8e0e0e78c0cd26a90dce.tar.gz gitea-d5703d4a1bab58234c9e8e0e0e78c0cd26a90dce.zip |
Remove "TODO" tasks from CSS file (#26835)
1. Use `gt-invisible` instead of `invisible`.
2. Use `gt-word-break` instead of `dont-break-out` (there is a slight
different "hyphens", but I think it won't affect too much since it is
only used for the "full name").
3. Remove `.small.button:has(svg)` , now our buttons could layout SVG
correctly, and actually I didn't see this CSS class is used in code.
Diffstat (limited to 'web_src/js/features/repo-legacy.js')
-rw-r--r-- | web_src/js/features/repo-legacy.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 3b25c36538..51edf0bd12 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -150,7 +150,7 @@ export function initRepoCommentForm() { if ($(this).hasClass('checked')) { $(this).removeClass('checked'); - $(this).find('.octicon-check').addClass('invisible'); + $(this).find('.octicon-check').addClass('gt-invisible'); if (hasUpdateAction) { if (!($(this).data('id') in items)) { items[$(this).data('id')] = { @@ -164,7 +164,7 @@ export function initRepoCommentForm() { } } else { $(this).addClass('checked'); - $(this).find('.octicon-check').removeClass('invisible'); + $(this).find('.octicon-check').removeClass('gt-invisible'); if (hasUpdateAction) { if (!($(this).data('id') in items)) { items[$(this).data('id')] = { @@ -215,7 +215,7 @@ export function initRepoCommentForm() { $(this).parent().find('.item').each(function () { $(this).removeClass('checked'); - $(this).find('.octicon-check').addClass('invisible'); + $(this).find('.octicon-check').addClass('gt-invisible'); }); if (selector === 'select-reviewers-modify' || selector === 'select-assignees-modify') { |