From 673286d8c8a00bf7240a93187d767fb5a5e32a31 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 17 Mar 2024 20:40:42 +0800 Subject: Refactor clone-panel styles (#29861) 1. The borders were doubled on the "empty" page, fix it. 2. Remove unnecessary CSS classes like "clone", "compact", etc 3. Use CSS class "clone-panel" instead of ID "clone-panel" 4. Use `tw-flex-1` instead of `gt-f1` 5. Remove unnecessary ID "more-btn" --- templates/repo/clone_buttons.tmpl | 6 +++--- templates/repo/empty.tmpl | 2 +- templates/repo/home.tmpl | 4 ++-- templates/repo/wiki/revision.tmpl | 2 +- templates/repo/wiki/view.tmpl | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index a664c4bda8..89daba9dc9 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -1,15 +1,15 @@ {{if $.CloneButtonShowHTTPS}} - {{end}} {{if $.CloneButtonShowSSH}} - {{end}} - diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl index a858a728e9..d3665a9f8b 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -37,7 +37,7 @@ {{end}} {{end}} -
+
{{template "repo/clone_buttons" .}}
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index ef10904bcc..24bafb8d9d 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -124,9 +124,9 @@
{{if eq $n 0}} -
+
{{template "repo/clone_buttons" .}} -
-
+
{{template "repo/clone_buttons" .}} {{template "repo/clone_script" .}}
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 19da3fd199..fefa9c589e 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -28,7 +28,7 @@
-
+
{{template "repo/clone_buttons" .}} {{template "repo/clone_script" .}}
-- cgit v1.2.3