Skip to content

Commit

Permalink
fix: 修改引导提示指向问题
Browse files Browse the repository at this point in the history
  • Loading branch information
moshangqi committed Oct 26, 2023
1 parent 13861f4 commit 1ea07f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 9 additions & 6 deletions src/components/SuperSideBar/container/Header/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
width: 16px;
height: 16px;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
font-size: @font-size-lg;
position: relative;

.avatar {
width: 100%;
Expand All @@ -57,6 +60,7 @@
}

.tooltipWrapper {
cursor: text;
&::before {
position: absolute;
width: 12px;
Expand All @@ -66,7 +70,7 @@
border-radius: 50%;
content: '';
top: -8px;
right: 18px;
right: 14px;
animation: breathing 1s infinite;
}

Expand All @@ -78,13 +82,13 @@
border-radius: 50%;
content: '';
top: -6px;
right: 20px;
right: 16px;
animation: breathing 1s infinite reverse;
}

:global {
.yuque-chrome-extension-tooltip-arrow {
transform: translateX(-4px);
transform: translateY(-2px);
&::before {
background-color: @blue-5;
}
Expand All @@ -95,8 +99,7 @@
}

.yuque-chrome-extension-tooltip-content {
transform: translateX(6px) translateY(16px);

transform: translateY(14px);
.yuque-chrome-extension-tooltip-inner {
background-color: @blue-5;
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/SuperSideBar/container/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ function SuperSidebarHeader() {
/>
</span>
}
placement="bottomLeft"
placement="bottomRight"
open={showTip}
overlayClassName={styles.tooltipWrapper}
getPopupContainer={node => node.parentNode as HTMLElement}
getPopupContainer={node => node as HTMLElement}
arrow={{ pointAtCenter: true }}
>
<div className={styles.itemWrapper} onClick={openSetting}>
<Icon component={SettingSvg} />
Expand Down

0 comments on commit 1ea07f8

Please sign in to comment.