mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-21 18:19:03 +08:00
调整字母水滴显示时机并校正尖角对齐字母
This commit is contained in:
+12
-10
@@ -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",
|
||||||
? "var(--ant-color-primary, #1890ff)"
|
borderBottom: "6px solid transparent",
|
||||||
: "rgba(24, 144, 255, 0.16)",
|
borderLeft: `8px solid ${
|
||||||
borderTop: isNavDraggingState ? "none" : "1px solid rgba(24, 144, 255, 0.32)",
|
isNavDraggingState
|
||||||
borderRight: isNavDraggingState ? "none" : "1px solid rgba(24, 144, 255, 0.32)",
|
? "var(--ant-color-primary, #1890ff)"
|
||||||
|
: "rgba(24, 144, 255, 0.16)"
|
||||||
|
}`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
|
|||||||
Reference in New Issue
Block a user