diff options
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/repo-diff-commit.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-findfile.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-home.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-issue-content.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-issue-list.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-legacy.js | 6 | ||||
-rw-r--r-- | web_src/js/features/tribute.js | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/web_src/js/features/repo-diff-commit.js b/web_src/js/features/repo-diff-commit.js index f0466f9320..aa7fc38360 100644 --- a/web_src/js/features/repo-diff-commit.js +++ b/web_src/js/features/repo-diff-commit.js @@ -35,7 +35,7 @@ function addBranches(area, branches, defaultBranch) { function addLink(parent, href, text, tooltip) { const link = document.createElement('a'); - link.classList.add('muted', 'gt-px-2'); + link.classList.add('muted', 'tw-px-1'); link.href = href; link.textContent = text; if (tooltip) { diff --git a/web_src/js/features/repo-findfile.js b/web_src/js/features/repo-findfile.js index cb03d9e803..0411b51f9c 100644 --- a/web_src/js/features/repo-findfile.js +++ b/web_src/js/features/repo-findfile.js @@ -83,7 +83,7 @@ function filterRepoFiles(filter) { const cell = document.createElement('td'); const a = document.createElement('a'); a.setAttribute('href', `${treeLink}/${pathEscapeSegments(r.matchResult.join(''))}`); - a.innerHTML = svg('octicon-file', 16, 'gt-mr-3'); + a.innerHTML = svg('octicon-file', 16, 'tw-mr-2'); row.append(cell); cell.append(a); for (const [index, part] of r.matchResult.entries()) { diff --git a/web_src/js/features/repo-home.js b/web_src/js/features/repo-home.js index 6ac7b96b9e..74304d7f4a 100644 --- a/web_src/js/features/repo-home.js +++ b/web_src/js/features/repo-home.js @@ -47,7 +47,7 @@ export function initRepoTopicBar() { const topicArray = topics.split(','); topicArray.sort(); for (const topic of topicArray) { - const $link = $('<a class="ui repo-topic large label topic gt-m-0"></a>'); + const $link = $('<a class="ui repo-topic large label topic tw-m-0"></a>'); $link.attr('href', `${appSubUrl}/explore/repos?q=${encodeURIComponent(topic)}&topic=1`); $link.text(topic); $link.insertBefore($mgrBtn); // insert all new topics before manage button diff --git a/web_src/js/features/repo-issue-content.js b/web_src/js/features/repo-issue-content.js index e7768b066e..9d51ab6b8d 100644 --- a/web_src/js/features/repo-issue-content.js +++ b/web_src/js/features/repo-issue-content.js @@ -18,7 +18,7 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH ${svg('octicon-x', 16, 'close icon inside')} <div class="header tw-flex tw-items-center tw-justify-between"> <div>${itemTitleHtml}</div> - <div class="ui dropdown dialog-header-options gt-mr-5 gt-hidden"> + <div class="ui dropdown dialog-header-options tw-mr-8 gt-hidden"> ${i18nTextOptions} ${svg('octicon-triangle-down', 14, 'dropdown icon')} <div class="menu"> diff --git a/web_src/js/features/repo-issue-list.js b/web_src/js/features/repo-issue-list.js index 4bdd5e5a8e..9681e648d5 100644 --- a/web_src/js/features/repo-issue-list.js +++ b/web_src/js/features/repo-issue-list.js @@ -109,7 +109,7 @@ function initRepoIssueListAuthorDropdown() { const processedResults = []; // to be used by dropdown to generate menu items for (const item of resp.results) { let html = `<img class="ui avatar tw-align-middle" src="${htmlEscape(item.avatar_link)}" aria-hidden="true" alt="" width="20" height="20"><span class="gt-ellipsis">${htmlEscape(item.username)}</span>`; - if (item.full_name) html += `<span class="search-fullname gt-ml-3">${htmlEscape(item.full_name)}</span>`; + if (item.full_name) html += `<span class="search-fullname tw-ml-2">${htmlEscape(item.full_name)}</span>`; processedResults.push({value: item.user_id, name: html}); } resp.results = processedResults; diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 18978e9e29..43567f4393 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -272,11 +272,11 @@ export function initRepoCommentForm() { let icon = ''; if (input_id === '#milestone_id') { - icon = svg('octicon-milestone', 18, 'gt-mr-3'); + icon = svg('octicon-milestone', 18, 'tw-mr-2'); } else if (input_id === '#project_id') { - icon = svg('octicon-project', 18, 'gt-mr-3'); + icon = svg('octicon-project', 18, 'tw-mr-2'); } else if (input_id === '#assignee_id') { - icon = `<img class="ui avatar image gt-mr-3" alt="avatar" src=${$(this).data('avatar')}>`; + icon = `<img class="ui avatar image tw-mr-2" alt="avatar" src=${$(this).data('avatar')}>`; } $list.find('.selected').html(` diff --git a/web_src/js/features/tribute.js b/web_src/js/features/tribute.js index 70a5de6913..02cd484374 100644 --- a/web_src/js/features/tribute.js +++ b/web_src/js/features/tribute.js @@ -36,7 +36,7 @@ function makeCollections({mentions, emoji}) { menuItemTemplate: (item) => { return ` <div class="tribute-item"> - <img src="${htmlEscape(item.original.avatar)}" class="gt-mr-3"/> + <img src="${htmlEscape(item.original.avatar)}" class="tw-mr-2"/> <span class="name">${htmlEscape(item.original.name)}</span> ${item.original.fullname && item.original.fullname !== '' ? `<span class="fullname">${htmlEscape(item.original.fullname)}</span>` : ''} </div> |