From 9a494af1259ea3a59706453eb16f46835720ea06 Mon Sep 17 00:00:00 2001 From: Kerwin Bryant Date: Mon, 2 Dec 2024 22:36:16 +0800 Subject: [PATCH] Optimize the styling of icon buttons within file-header-right (#32675) Optimize partial layout and styling to achieve uniformity and consistency. Some buttons's structure is ``, while others buttons's structure is ``. Additionally, some buttons have icons that are **14** in size, while others have icons that are **16**. Now, the layout has been unified to structure ``, and the icon size for all buttons has been standardized to the default size of **16**. Co-authored-by: wxiaoguang --- templates/repo/view_file.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 89bb371e7c..86366ae053 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -56,21 +56,21 @@ {{end}} - {{svg "octicon-download"}} - {{svg "octicon-copy" 14}} + {{svg "octicon-download"}} + {{svg "octicon-copy"}} {{if .EnableFeed}} - {{svg "octicon-rss" 14}} + {{svg "octicon-rss"}} {{end}} {{if .Repository.CanEnableEditor}} {{if .CanEditFile}} - {{svg "octicon-pencil"}} + {{svg "octicon-pencil"}} {{else}} {{svg "octicon-pencil"}} {{end}} {{if .CanDeleteFile}} - {{svg "octicon-trash"}} + {{svg "octicon-trash"}} {{else}} {{svg "octicon-trash"}} {{end}}