feat(admin): 素材卡片「复制」更名「复制路径」
按钮复制的是 /uploads/ 相对路径而非完整 URL,名称如实反映行为; title 同步为「复制图片相对路径」。
This commit is contained in:
parent
d610fd5837
commit
0086f0f3ea
@ -451,7 +451,7 @@ pub fn Assets() -> Element {
|
|||||||
div { class: "flex items-center gap-2 mt-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
div { class: "flex items-center gap-2 mt-2 opacity-0 group-hover:opacity-100 transition-opacity",
|
||||||
button {
|
button {
|
||||||
class: "text-[10px] cursor-pointer text-[var(--color-paper-secondary)] hover:text-[var(--color-paper-primary)] transition-colors",
|
class: "text-[10px] cursor-pointer text-[var(--color-paper-secondary)] hover:text-[var(--color-paper-primary)] transition-colors",
|
||||||
title: "复制图片 URL",
|
title: "复制图片相对路径",
|
||||||
onclick: {
|
onclick: {
|
||||||
let url = format!("/uploads/{}", a.path);
|
let url = format!("/uploads/{}", a.path);
|
||||||
move |_| {
|
move |_| {
|
||||||
@ -465,7 +465,7 @@ pub fn Assets() -> Element {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"复制"
|
"复制路径"
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
class: "text-[10px] cursor-pointer text-[var(--color-paper-secondary)] hover:text-[var(--color-paper-primary)] transition-colors",
|
class: "text-[10px] cursor-pointer text-[var(--color-paper-secondary)] hover:text-[var(--color-paper-primary)] transition-colors",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user