From 62aa5e2cbd64c90546bbaf849070b42931a4e60b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 4 Mar 2024 20:56:34 +0800 Subject: [PATCH] Refactor star/watch button (#29576) 1. Use "star/unstart", but not `{{if}}un{{}}star{{}}` (the same to "watch/unwatch") 2. Use "not-mobile" for hiding the elements on mobile --- templates/repo/star_unstar.tmpl | 13 ++++++------- templates/repo/watch_unwatch.tmpl | 13 ++++++------- web_src/css/repo/header.css | 3 --- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/templates/repo/star_unstar.tmpl b/templates/repo/star_unstar.tmpl index 9c342f4065..1cdb98bf27 100644 --- a/templates/repo/star_unstar.tmpl +++ b/templates/repo/star_unstar.tmpl @@ -1,11 +1,10 @@ -
+