Skip to content

Commit 76d02ec

Browse files
[fix] Update small sidebar arrow positioning and improve center alignment
- Fixed small sidebar rule to use consistent calculation with normal sidebar - Updated positioning to use half icon height for better center alignment - Both normal and small sidebar now use dynamic CSS variable calculations Addresses feedback from review by viva-jinyi on CSS specificity and positioning accuracy.
1 parent 7fc7a73 commit 76d02ec

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/helpcenter/WhatsNewPopup.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ defineExpose({
169169
.help-center-arrow {
170170
position: absolute;
171171
bottom: calc(
172-
var(--sidebar-width, 4rem) * 2 + 0.25rem
173-
); /* Position toward center of help center icon (accounting for 2 icons below) */
172+
var(--sidebar-width, 4rem) * 2 + var(--sidebar-width, 4rem) / 2
173+
); /* Position to center of help center icon (2 icons below + half icon height for center) */
174174
transform: none;
175175
z-index: 999;
176176
pointer-events: none;
@@ -183,7 +183,9 @@ defineExpose({
183183
184184
.whats-new-popup-container.sidebar-left.small-sidebar .help-center-arrow {
185185
left: -14px; /* Overlap with popup outline */
186-
bottom: calc(2.5rem + 0.25rem); /* Adjust for small sidebar */
186+
bottom: calc(
187+
var(--sidebar-width) * 2 + var(--sidebar-width) / 2
188+
); /* Position to center of help center icon (2 icons below + half icon height for center) */
187189
}
188190
189191
/* Sidebar positioning classes applied by parent */

0 commit comments

Comments
 (0)