diff --git a/templates/repo/editor/cherry_pick.tmpl b/templates/repo/editor/cherry_pick.tmpl
index 828addb75a..59948f2837 100644
--- a/templates/repo/editor/cherry_pick.tmpl
+++ b/templates/repo/editor/cherry_pick.tmpl
@@ -18,7 +18,7 @@
{{.locale.Tr "repo.editor.cherry_pick" $shalink | Str2html}}
{{end}}
{{.Repository.FullName}}
-
{{.locale.Tr "repo.editor.patching"}}
{{.Repository.FullName}}
-
:
+
:
{{.BranchName}}
{{.locale.Tr "repo.editor.or"}} {{.locale.Tr "repo.editor.cancel_lower"}}
diff --git a/templates/repo/editor/upload.tmpl b/templates/repo/editor/upload.tmpl
index d9408c9eee..bfb6f150c1 100644
--- a/templates/repo/editor/upload.tmpl
+++ b/templates/repo/editor/upload.tmpl
@@ -11,7 +11,7 @@
{{$n := len .TreeNames}}
{{$l := Eval $n "-" 1}}
{{range $i, $v := .TreeNames}}
-
/
+
/
{{if eq $i $l}}
{{svg "octicon-info"}}
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index aaa1a1b974..7eb4ba4636 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -113,7 +113,7 @@
{{StringUtils.EllipsisString .Repository.Name 30}}
{{- range $i, $v := .TreeNames -}}
- /
+ /
{{- if eq $i $l -}}
{{StringUtils.EllipsisString $v 30}}
{{- else -}}
diff --git a/web_src/css/modules/breadcrumb.css b/web_src/css/modules/breadcrumb.css
index 67830e562a..ca488c2150 100644
--- a/web_src/css/modules/breadcrumb.css
+++ b/web_src/css/modules/breadcrumb.css
@@ -1,7 +1,12 @@
-.breadcrumb .divider {
+.breadcrumb {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 3px;
+}
+
+.breadcrumb .breadcrumb-divider {
color: var(--color-text-light-2);
- margin-left: 3px;
- margin-right: 3px;
}
.breadcrumb > * {
diff --git a/web_src/js/features/repo-editor.js b/web_src/js/features/repo-editor.js
index b7937cf006..c48c3fdfde 100644
--- a/web_src/js/features/repo-editor.js
+++ b/web_src/js/features/repo-editor.js
@@ -114,7 +114,7 @@ export function initRepoEditor() {
if (i < parts.length - 1) {
if (value.length) {
$(`${htmlEscape(value)}`).insertBefore($(this));
- $(' /
').insertBefore($(this));
+ $('/
').insertBefore($(this));
}
} else {
$(this).val(value);
@@ -132,7 +132,7 @@ export function initRepoEditor() {
// Jump back to last directory once the filename is empty
if (e.code === 'Backspace' && getCursorPosition($(this)) === 0 && $section.length > 0) {
e.preventDefault();
- const $divider = $('.breadcrumb div.divider');
+ const $divider = $('.breadcrumb .breadcrumb-divider');
const value = $section.last().find('a').text();
$(this).val(value + $(this).val());
this.setSelectionRange(value.length, value.length);