added active state

This commit is contained in:
2026-03-16 17:33:05 +08:00
parent cbaff15d72
commit 7745c83bbd
3 changed files with 11 additions and 9 deletions

View File

@@ -1,11 +1,6 @@
import React from "react"; import React from "react";
const ellipsis = ({ const ellipsis = ({ width = "24", height = "24", style }) => {
width = "24",
height = "24",
color = "#858699",
style,
}) => {
return ( return (
<svg <svg
className={style} className={style}
@@ -17,7 +12,7 @@ const ellipsis = ({
> >
<path <path
d="M12 16C13.1046 16 14 16.8954 14 18C14 19.1046 13.1046 20 12 20C10.8954 20 10 19.1046 10 18C10 16.8954 10.8954 16 12 16ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 14 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10ZM12 4C13.1046 4 14 4.89543 14 6C14 7.10457 13.1046 8 12 8C10.8954 8 10 7.10457 10 6C10 4.89543 10.8954 4 12 4Z" d="M12 16C13.1046 16 14 16.8954 14 18C14 19.1046 13.1046 20 12 20C10.8954 20 10 19.1046 10 18C10 16.8954 10.8954 16 12 16ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 14 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10ZM12 4C13.1046 4 14 4.89543 14 6C14 7.10457 13.1046 8 12 8C10.8954 8 10 7.10457 10 6C10 4.89543 10.8954 4 12 4Z"
fill={color} fill="currentColor"
/> />
</svg> </svg>
); );

View File

@@ -41,7 +41,10 @@ const Profile = () => {
{/* Mobile Ellipsis */} {/* Mobile Ellipsis */}
{isMobile && ( {isMobile && (
<div className={styles.mobileEllipsis} onClick={() => setOpen(!open)}> <div
className={`${styles.mobileEllipsis} ${open ? styles.active : ""}`}
onClick={() => setOpen(!open)}
>
<EllipsisIcon style={isMobile ? styles.rotated : ""} /> <EllipsisIcon style={isMobile ? styles.rotated : ""} />
</div> </div>
)} )}

View File

@@ -153,7 +153,9 @@
.rotated { .rotated {
transform: rotate(90deg); transform: rotate(90deg);
} }
.mobileEllipsis.active {
color: #959aff;
}
/* Mobile */ /* Mobile */
@media (max-width: 768px) { @media (max-width: 768px) {
.dropdownContainer { .dropdownContainer {
@@ -178,6 +180,8 @@
align-items: center; align-items: center;
gap: 10px; gap: 10px;
padding-right: 10px; padding-right: 10px;
cursor: pointer;
color: #85869b;
} }
.profileBadge { .profileBadge {