mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-08 21:20:32 +08:00
fix(ui): widen unknown column in calendar layout
Make the "unknown" day column span 2 grid columns and display items in a grid layout for better use of space. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -161,7 +161,10 @@ function onRuleSelect(rule: BangumiRule) {
|
||||
v-for="(key, index) in [...DAY_KEYS, 'unknown']"
|
||||
:key="key"
|
||||
class="calendar-column anim-slide-up"
|
||||
:class="{ 'calendar-column--today': key !== 'unknown' && isToday(index) }"
|
||||
:class="{
|
||||
'calendar-column--today': key !== 'unknown' && isToday(index),
|
||||
'calendar-column--unknown': key === 'unknown'
|
||||
}"
|
||||
:style="{ '--delay': `${index * 0.05}s` }"
|
||||
>
|
||||
<!-- Day header -->
|
||||
@@ -432,6 +435,11 @@ function onRuleSelect(rule: BangumiRule) {
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 1px var(--color-primary-light);
|
||||
}
|
||||
|
||||
&--unknown {
|
||||
grid-column: span 2;
|
||||
background: var(--color-surface-hover);
|
||||
}
|
||||
}
|
||||
|
||||
.calendar-day-header {
|
||||
@@ -477,6 +485,12 @@ function onRuleSelect(rule: BangumiRule) {
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
|
||||
.calendar-column--unknown & {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
// Card wrapper for badge positioning
|
||||
|
||||
Reference in New Issue
Block a user