Add study body part filters

This commit is contained in:
Codex
2026-05-27 13:42:53 +08:00
parent fc681fa08b
commit 6653c147c8
4 changed files with 129 additions and 65 deletions

View File

@@ -262,7 +262,7 @@ button:disabled {
.series-pane {
padding: 14px;
display: grid;
grid-template-rows: auto auto auto 1fr;
grid-template-rows: auto auto auto auto 1fr;
gap: 12px;
}
@@ -336,8 +336,17 @@ button:disabled {
gap: 6px;
}
.study-filter button {
.study-part-filter {
display: flex;
gap: 6px;
overflow-x: auto;
padding-bottom: 2px;
}
.study-filter button,
.study-part-filter button {
height: 30px;
flex: 0 0 auto;
border: 1px solid var(--stroke);
border-radius: 7px;
background: #0b0f16;
@@ -345,7 +354,13 @@ button:disabled {
font-size: 12px;
}
.study-filter button.active {
.study-part-filter button {
min-width: 66px;
padding: 0 10px;
}
.study-filter button.active,
.study-part-filter button.active {
border-color: rgba(25, 212, 194, 0.62);
color: #baf8ee;
background: rgba(25, 212, 194, 0.08);
@@ -361,7 +376,7 @@ button:disabled {
.study-card {
position: relative;
width: 100%;
padding: 12px 42px 12px 12px;
padding: 12px 112px 12px 12px;
margin-bottom: 10px;
border: 1px solid transparent;
border-radius: 8px;
@@ -370,10 +385,17 @@ button:disabled {
text-align: left;
}
.study-status-badge {
.study-card-status-stack {
position: absolute;
top: 10px;
right: 10px;
max-width: 96px;
display: grid;
justify-items: end;
gap: 6px;
}
.study-status-badge {
min-width: 48px;
height: 22px;
display: inline-grid;
@@ -388,6 +410,28 @@ button:disabled {
cursor: pointer;
}
.study-part-tags {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: 4px;
}
.study-part-tags em {
max-width: 92px;
padding: 2px 6px;
overflow: hidden;
border: 1px solid rgba(25, 212, 194, 0.34);
border-radius: 999px;
color: #baf8ee;
background: rgba(25, 212, 194, 0.07);
font-size: 10px;
font-style: normal;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.study-status-badge:hover {
border-color: rgba(239, 245, 255, 0.58);
color: var(--text);
@@ -874,11 +918,6 @@ button:disabled {
background: rgba(240, 181, 78, 0.12);
}
.part-grid .plain-option:has(input:checked) {
border-color: rgba(52, 116, 246, 0.72);
background: rgba(52, 116, 246, 0.12);
}
.part-grid input:disabled + * {
color: var(--muted);
}