Add friend search and online/offline filter, sort online friends first, move the comparison panel above the list, cache comparisons in the browser, add game search and show local/friend hours with installed badges.
This commit is contained in:
1 parent
71ca94d5e3
commit
80aae1a1df
7 files changed
+313
-63
No files matched your search
+81
-11
@@ -920,15 +920,40 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
.compare-score { margin-left: 6px; font-size: 12px; color: var(--accent-2); }
|
||||
.compare-jaccard { margin-bottom: 4px; font-size: 13px; color: var(--text); }
|
||||
|
||||
.friends-page { display: flex; flex-direction: column; gap: 18px; }
|
||||
.friends-manual { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
||||
.friends-manual input { flex: 1 1 220px; max-width: 320px; }
|
||||
.friends-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
|
||||
.friends-page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
|
||||
.friends-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
.friends-toolbar input { flex: 1 1 220px; max-width: 360px; min-width: 0; }
|
||||
.friends-toolbar select { width: auto; min-width: 120px; }
|
||||
.friends-toolbar .count { margin-left: auto; }
|
||||
.friends-toolbar .ghost, .friends-manual-row .ghost { flex: 0 0 auto; }
|
||||
.friends-manual {
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: var(--panel);
|
||||
}
|
||||
.friends-manual summary { padding: 9px 0; cursor: pointer; font-size: 13px; color: var(--muted); }
|
||||
.friends-manual[open] summary { color: var(--text); }
|
||||
.friends-manual-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 10px; }
|
||||
.friends-manual-row input { flex: 1 1 220px; max-width: 320px; }
|
||||
.friends-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
.friend-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px;
|
||||
padding: 9px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--panel);
|
||||
@@ -936,16 +961,37 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
color: inherit;
|
||||
transition: .15s;
|
||||
}
|
||||
.friend-card:hover { border-color: var(--accent); }
|
||||
.friend-card img, .friend-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
.friend-card:hover { border-color: var(--accent); background: var(--panel-2); }
|
||||
.friend-card.active { border-color: var(--accent); background: var(--panel-2); }
|
||||
.friend-avatar-wrap { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
|
||||
.friend-avatar-wrap img, .friend-avatar {
|
||||
display: block;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
background: var(--bg-2);
|
||||
object-fit: cover;
|
||||
}
|
||||
.friend-dot {
|
||||
position: absolute;
|
||||
right: -2px;
|
||||
bottom: -2px;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border: 2px solid var(--panel);
|
||||
border-radius: 50%;
|
||||
background: #6b7280;
|
||||
}
|
||||
.friend-dot.online { background: #34d399; }
|
||||
.friend-dot.offline { background: #6b7280; }
|
||||
.friend-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
||||
.friend-info b { font-size: 14px; }
|
||||
.friend-info b {
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.friend-meta { font-size: 12px; color: var(--muted); }
|
||||
.friend-compare {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -957,14 +1003,31 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
}
|
||||
.friend-compare[hidden] { display: none; }
|
||||
.friend-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||
.friend-head img { width: 56px; height: 56px; border-radius: 12px; background: var(--bg-2); }
|
||||
.friend-head .friend-avatar-wrap { flex-basis: 56px; width: 56px; height: 56px; }
|
||||
.friend-head .friend-avatar-wrap img, .friend-head .friend-avatar {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.friend-title { flex: 1 1 200px; }
|
||||
.friend-title h2 { margin: 0 0 2px; font-size: 20px; }
|
||||
.friend-profile { font-size: 12px; color: var(--accent-2); }
|
||||
.friend-head #friendClose { margin-left: auto; }
|
||||
.friend-compare-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
|
||||
.friend-compare-toolbar input { flex: 1 1 220px; max-width: 360px; }
|
||||
.friend-compare-toolbar .count { margin-left: auto; }
|
||||
.friend-columns { display: flex; flex-wrap: wrap; gap: 18px; }
|
||||
.friend-columns .compare-col { flex: 1 1 260px; min-width: 220px; }
|
||||
.friend-columns ul { max-height: 360px; overflow-y: auto; }
|
||||
.friend-columns li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
|
||||
.friend-installed {
|
||||
padding: 0 5px;
|
||||
border: 1px solid rgba(94, 234, 212, .3);
|
||||
border-radius: 99px;
|
||||
font-size: 10px;
|
||||
color: var(--accent-2);
|
||||
}
|
||||
.friend-more { align-self: flex-start; margin-top: 6px; }
|
||||
|
||||
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
|
||||
.reco-actions[hidden] { display: none; }
|
||||
@@ -1330,6 +1393,13 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
|
||||
.theme-toggle { position: absolute; top: 12px; right: 16px; }
|
||||
.tabs { gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; }
|
||||
.tab { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
|
||||
.friends-list { grid-template-columns: 1fr; }
|
||||
.friends-toolbar { display: flex; }
|
||||
.friends-toolbar input { flex: 1 1 100%; max-width: none; }
|
||||
.friends-toolbar select { flex: 1 1 auto; min-width: 0; }
|
||||
.friends-toolbar .ghost { flex: 0 0 auto; }
|
||||
.friends-toolbar .count { flex: 1 1 100%; margin-left: 0; }
|
||||
.friends-manual-row input { max-width: none; }
|
||||
.stats { width: 100%; justify-content: flex-start; }
|
||||
main { padding: 18px 16px 60px; }
|
||||
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
|
||||
|
||||
Reference in new issue
Block a user