mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-25 07:16:51 +00:00
修ui
This commit is contained in:
@@ -111,66 +111,52 @@
|
|||||||
|
|
||||||
.type-filters {
|
.type-filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
gap: 12px;
|
||||||
padding: 0 20px 12px;
|
padding: 0 20px 12px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
|
overflow-x: auto;
|
||||||
|
/* Allow horizontal scroll if needed on very small screens */
|
||||||
|
|
||||||
|
/* Hide scrollbar */
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.filter-checkbox {
|
.filter-checkbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
/* Changed to flex with padding */
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
input[type="checkbox"] {
|
&:hover {
|
||||||
position: absolute;
|
background: var(--bg-hover);
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
|
|
||||||
&:checked+.custom-checkbox {
|
|
||||||
background: var(--primary);
|
|
||||||
border-color: var(--primary);
|
|
||||||
|
|
||||||
&::after {
|
|
||||||
opacity: 1;
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-checkbox {
|
input[type="checkbox"] {
|
||||||
position: relative;
|
width: 16px;
|
||||||
width: 18px;
|
height: 16px;
|
||||||
height: 18px;
|
accent-color: var(--primary);
|
||||||
border: 2px solid var(--border-color);
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
opacity: 1;
|
||||||
background: var(--bg-primary);
|
/* Make visible */
|
||||||
transition: all 0.2s;
|
position: static;
|
||||||
|
/* Make static */
|
||||||
&::after {
|
pointer-events: auto;
|
||||||
content: '';
|
/* Enable pointer events */
|
||||||
position: absolute;
|
|
||||||
left: 4px;
|
|
||||||
top: 1px;
|
|
||||||
width: 4px;
|
|
||||||
height: 8px;
|
|
||||||
border: solid white;
|
|
||||||
border-width: 0 2px 2px 0;
|
|
||||||
transform: rotate(45deg) scale(0);
|
|
||||||
opacity: 0;
|
|
||||||
transition: all 0.2s;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
margin-left: 2px;
|
||||||
|
|
||||||
&:hover .custom-checkbox {
|
|
||||||
border-color: var(--primary);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,7 +230,6 @@ function ContactsPage() {
|
|||||||
checked={contactTypes.friends}
|
checked={contactTypes.friends}
|
||||||
onChange={e => setContactTypes({ ...contactTypes, friends: e.target.checked })}
|
onChange={e => setContactTypes({ ...contactTypes, friends: e.target.checked })}
|
||||||
/>
|
/>
|
||||||
<div className="custom-checkbox"></div>
|
|
||||||
<User size={16} />
|
<User size={16} />
|
||||||
<span>好友</span>
|
<span>好友</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -240,7 +239,6 @@ function ContactsPage() {
|
|||||||
checked={contactTypes.groups}
|
checked={contactTypes.groups}
|
||||||
onChange={e => setContactTypes({ ...contactTypes, groups: e.target.checked })}
|
onChange={e => setContactTypes({ ...contactTypes, groups: e.target.checked })}
|
||||||
/>
|
/>
|
||||||
<div className="custom-checkbox"></div>
|
|
||||||
<Users size={16} />
|
<Users size={16} />
|
||||||
<span>群聊</span>
|
<span>群聊</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -250,7 +248,6 @@ function ContactsPage() {
|
|||||||
checked={contactTypes.officials}
|
checked={contactTypes.officials}
|
||||||
onChange={e => setContactTypes({ ...contactTypes, officials: e.target.checked })}
|
onChange={e => setContactTypes({ ...contactTypes, officials: e.target.checked })}
|
||||||
/>
|
/>
|
||||||
<div className="custom-checkbox"></div>
|
|
||||||
<MessageSquare size={16} />
|
<MessageSquare size={16} />
|
||||||
<span>公众号</span>
|
<span>公众号</span>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user