Fix edit topic UI (#27925)

Before:
desktop view:

![image](c04d8730-5dac-4318-9643-72801da0ca16)
mobile view:

![image](187220d3-1fcc-4db8-9cf8-ee88fe92d989)
after click `Save` btn:

![image](c3242470-7e6f-4ddc-a2ac-d896bbd39529)

![image](82e03ba5-a6d2-4437-b074-387e7ad5b6ba)
refresh the page, you will see that `gt-m-0` is missing after save
topic:

![image](26914820-9363-483c-af70-78b76de47523)


After:
desktop view:

![image](12d878e1-351e-4983-b3d9-5216e9f30a19)
mobile view:

![image](4adf9b0f-977b-4bbc-a42f-b9bfb2d648dd)
after click `Save` btn:

![image](064c911e-d074-4432-8a55-8ff8ddb93989)
This commit is contained in:
yp05327 2023-11-06 18:23:50 +09:00 committed by GitHub
parent 4f4fea734c
commit 7a2ff6c162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ export function initRepoTopicBar() {
const topicArray = topics.split(',');
topicArray.sort();
for (let i = 0; i < topicArray.length; i++) {
const link = $('<a class="ui repo-topic large label topic"></a>');
const link = $('<a class="ui repo-topic large label topic gt-m-0"></a>');
link.attr('href', `${appSubUrl}/explore/repos?q=${encodeURIComponent(topicArray[i])}&topic=1`);
link.text(topicArray[i]);
link.insertBefore(mgrBtn); // insert all new topics before manage button