From 3ee002a15f72974196cca53b95b070cc0fb8174b Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Sun, 17 Aug 2025 18:57:33 +0100 Subject: [PATCH] appview/pages: fix clone-instructions in mobile and fix empty-repo rendering. Signed-off-by: oppiliappan --- appview/pages/templates/repo/empty.html | 4 ---- .../templates/repo/fragments/cloneDropdown.html | 6 +++--- appview/pages/templates/repo/index.html | 13 +++++++------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/appview/pages/templates/repo/empty.html b/appview/pages/templates/repo/empty.html index 7190f132..188c10d9 100644 --- a/appview/pages/templates/repo/empty.html +++ b/appview/pages/templates/repo/empty.html @@ -44,7 +44,3 @@ {{ end }} {{ end }} - -{{ define "repoAfter" }} - {{ template "repo/fragments/cloneInstructions" . }} -{{ end }} diff --git a/appview/pages/templates/repo/fragments/cloneDropdown.html b/appview/pages/templates/repo/fragments/cloneDropdown.html index 0adad8d8..6a225a8e 100644 --- a/appview/pages/templates/repo/fragments/cloneDropdown.html +++ b/appview/pages/templates/repo/fragments/cloneDropdown.html @@ -7,7 +7,7 @@
{{ i "download" "w-4 h-4" }} - code + {{ i "chevron-down" "w-4 h-4" }} @@ -16,7 +16,7 @@ -
+

Clone this repository

@@ -84,7 +84,7 @@ function copyToClipboard(button, text) { navigator.clipboard.writeText(text).then(() => { const originalContent = button.innerHTML; - button.innerHTML = `{{ i "copy-check" "w-4 h-4" }}`; + button.innerHTML = `{{ i "check" "w-4 h-4" }}`; setTimeout(() => { button.innerHTML = originalContent; }, 2000); diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 49881ece..6a3bfb56 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -14,16 +14,17 @@ {{ end }} - + -
+
-- 2.51.2