mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 15:25:50 +00:00
feat: 一些优化
This commit is contained in:
@@ -111,52 +111,59 @@
|
|||||||
|
|
||||||
.type-filters {
|
.type-filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 8px;
|
||||||
padding: 0 20px 12px;
|
padding: 0 20px 16px;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
/* Allow horizontal scroll if needed on very small screens */
|
|
||||||
|
|
||||||
/* Hide scrollbar */
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-checkbox {
|
.filter-chip {
|
||||||
display: flex;
|
display: flex;
|
||||||
/* Changed to flex with padding */
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
|
padding: 8px 14px;
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
color: var(--text-primary);
|
font-weight: 500;
|
||||||
padding: 6px 12px;
|
color: var(--text-secondary);
|
||||||
background: var(--bg-secondary);
|
transition: all 0.2s ease;
|
||||||
border-radius: 8px;
|
white-space: nowrap;
|
||||||
transition: all 0.2s;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: var(--bg-hover);
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
width: 16px;
|
display: none;
|
||||||
height: 16px;
|
|
||||||
accent-color: var(--primary);
|
|
||||||
cursor: pointer;
|
|
||||||
opacity: 1;
|
|
||||||
/* Make visible */
|
|
||||||
position: static;
|
|
||||||
/* Make static */
|
|
||||||
pointer-events: auto;
|
|
||||||
/* Enable pointer events */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
color: var(--text-secondary);
|
opacity: 0.7;
|
||||||
flex-shrink: 0;
|
transition: transform 0.2s;
|
||||||
margin-left: 2px;
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--bg-hover);
|
||||||
|
border-color: var(--text-tertiary);
|
||||||
|
color: var(--text-primary);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
background: var(--primary-light);
|
||||||
|
border-color: var(--primary);
|
||||||
|
color: var(--primary);
|
||||||
|
|
||||||
|
svg {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--primary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ function ContactsPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="type-filters">
|
<div className="type-filters">
|
||||||
<label className="filter-checkbox">
|
<label className={`filter-chip ${contactTypes.friends ? 'active' : ''}`}>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={contactTypes.friends}
|
checked={contactTypes.friends}
|
||||||
@@ -233,7 +233,7 @@ function ContactsPage() {
|
|||||||
<User size={16} />
|
<User size={16} />
|
||||||
<span>好友</span>
|
<span>好友</span>
|
||||||
</label>
|
</label>
|
||||||
<label className="filter-checkbox">
|
<label className={`filter-chip ${contactTypes.groups ? 'active' : ''}`}>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={contactTypes.groups}
|
checked={contactTypes.groups}
|
||||||
@@ -242,7 +242,7 @@ function ContactsPage() {
|
|||||||
<Users size={16} />
|
<Users size={16} />
|
||||||
<span>群聊</span>
|
<span>群聊</span>
|
||||||
</label>
|
</label>
|
||||||
<label className="filter-checkbox">
|
<label className={`filter-chip ${contactTypes.officials ? 'active' : ''}`}>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={contactTypes.officials}
|
checked={contactTypes.officials}
|
||||||
|
|||||||
Reference in New Issue
Block a user