refactor(assets): 评论区与后台编辑器背景图换用 xiantiaoxiaogou_input_bg

This commit is contained in:
xfy 2026-07-02 10:58:52 +08:00
parent 79425ca678
commit 48107d8e18
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ pub fn CommentForm(post_id: i32, parent_id: Option<i64>, parent_indent: Option<i
oninput: move |e| content_md.set(e.value()), oninput: move |e| content_md.set(e.value()),
} }
img { img {
src: "/images/xiantiaoxiaogou_03.webp", src: "/images/xiantiaoxiaogou_input_bg.webp",
alt: "", alt: "",
class: "absolute bottom-1.5 right-1.5 w-24 pointer-events-none opacity-60 peer-focus:opacity-10 transition-opacity duration-300 z-0", class: "absolute bottom-1.5 right-1.5 w-24 pointer-events-none opacity-60 peer-focus:opacity-10 transition-opacity duration-300 z-0",
} }

View File

@ -470,7 +470,7 @@ fn write_editor(post_id: Option<i32>) -> Element {
class: "relative group flex-1 min-h-0 w-full border border-[var(--color-paper-border)] rounded-xl overflow-hidden bg-[var(--color-paper-entry)] shadow-[0_2px_8px_rgba(0,0,0,0.04)] dark:shadow-none", class: "relative group flex-1 min-h-0 w-full border border-[var(--color-paper-border)] rounded-xl overflow-hidden bg-[var(--color-paper-entry)] shadow-[0_2px_8px_rgba(0,0,0,0.04)] dark:shadow-none",
id: "tiptap-editor", id: "tiptap-editor",
img { img {
src: "/images/xiantiaoxiaogou_03.webp", src: "/images/xiantiaoxiaogou_input_bg.webp",
alt: "", alt: "",
class: "absolute bottom-1.5 right-1.5 opacity-60 group-focus-within:opacity-10 transition-opacity duration-300 pointer-events-none z-0", class: "absolute bottom-1.5 right-1.5 opacity-60 group-focus-within:opacity-10 transition-opacity duration-300 pointer-events-none z-0",
} }