diff options
author | Blender Defender <contact.blenderdefender@gmail.com> | 2024-12-11 14:54:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 21:54:30 +0800 |
commit | 18061af49068c8fcceb316f889d719bff6ba8155 (patch) | |
tree | 1807e097a933379a4bd513b68118815f09770b24 /routers/web/repo | |
parent | 8a53a39c426e95164e87a3b0857eb420711bfd85 (diff) | |
download | gitea-18061af49068c8fcceb316f889d719bff6ba8155.tar.gz gitea-18061af49068c8fcceb316f889d719bff6ba8155.zip |
Rearrange Clone Panel (#31142)
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/web/repo')
-rw-r--r-- | routers/web/repo/view_home.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/view_home.go b/routers/web/repo/view_home.go index e0539f53b0..b318c4a621 100644 --- a/routers/web/repo/view_home.go +++ b/routers/web/repo/view_home.go @@ -74,9 +74,9 @@ func prepareOpenWithEditorApps(ctx *context.Context) { schema, _, _ := strings.Cut(app.OpenURL, ":") var iconHTML template.HTML if schema == "vscode" || schema == "vscodium" || schema == "jetbrains" { - iconHTML = svg.RenderHTML(fmt.Sprintf("gitea-%s", schema), 16, "tw-mr-2") + iconHTML = svg.RenderHTML(fmt.Sprintf("gitea-%s", schema), 16) } else { - iconHTML = svg.RenderHTML("gitea-git", 16, "tw-mr-2") // TODO: it could support user's customized icon in the future + iconHTML = svg.RenderHTML("gitea-git", 16) // TODO: it could support user's customized icon in the future } tmplApps = append(tmplApps, map[string]any{ "DisplayName": app.DisplayName, |