调整字母水滴显示时机并校正尖角对齐字母

This commit is contained in:
JSR
2026-03-18 18:45:16 +08:00
parent 98a18a5d7f
commit 4fb017ab4a
+11 -9
View File
@@ -593,7 +593,7 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
touchAction: "none", touchAction: "none",
}} }}
> >
{navActiveKey && ( {isNavDraggingState && navActiveKey && (
<div <div
style={{ style={{
position: "absolute", position: "absolute",
@@ -620,16 +620,18 @@ export const Home: React.FC<{ canEdit: boolean }> = ({ canEdit }) => {
<div <div
style={{ style={{
position: "absolute", position: "absolute",
right: "-4px", right: "-8px",
top: "50%", top: "50%",
width: "10px", width: 0,
height: "10px", height: 0,
transform: "translateY(-50%) rotate(45deg)", transform: "translateY(-50%)",
backgroundColor: isNavDraggingState borderTop: "6px solid transparent",
borderBottom: "6px solid transparent",
borderLeft: `8px solid ${
isNavDraggingState
? "var(--ant-color-primary, #1890ff)" ? "var(--ant-color-primary, #1890ff)"
: "rgba(24, 144, 255, 0.16)", : "rgba(24, 144, 255, 0.16)"
borderTop: isNavDraggingState ? "none" : "1px solid rgba(24, 144, 255, 0.32)", }`,
borderRight: isNavDraggingState ? "none" : "1px solid rgba(24, 144, 255, 0.32)",
}} }}
/> />
<span <span