fix(admin/posts): Tooltip 包裹后操作按钮恢复垂直居中

- Tooltip 外层 div 由块级改为 inline-flex,作为行内伸缩盒参与
  flex 行对齐,不再撑高或破坏基线
- 操作列容器补 items-center,显式锁定所有子项垂直居中
This commit is contained in:
xfy 2026-07-03 11:08:04 +08:00
parent 73b9cad550
commit 64ad40ca61
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ pub fn Tooltip(
"bottom-full mb-2" "bottom-full mb-2"
}; };
rsx! { rsx! {
div { class: "group relative", div { class: "group relative inline-flex",
{children} {children}
div { class: "{TOOLTIP_STYLE} {position_class}", "{tip}" } div { class: "{TOOLTIP_STYLE} {position_class}", "{tip}" }
} }

View File

@ -309,7 +309,7 @@ fn PostRow(
} }
td { class: "px-4 py-3 text-paper-secondary", "{date_str}" } td { class: "px-4 py-3 text-paper-secondary", "{date_str}" }
td { class: "px-4 py-3 text-right", td { class: "px-4 py-3 text-right",
div { class: "flex justify-end gap-3", div { class: "flex justify-end items-center gap-3",
Link { Link {
class: "text-xs text-paper-secondary hover:text-paper-primary transition-colors cursor-pointer", class: "text-xs text-paper-secondary hover:text-paper-primary transition-colors cursor-pointer",
to: Route::WriteEdit { id: post.id }, to: Route::WriteEdit { id: post.id },