feat: redesign bulk actions bar in liquid glass style
Pill-shaped glass buttons with inset highlights and hover transitions, accent-colored count badge, glass panel background with blur+saturate. Danger button uses red-tinted glass. Cancel rendered as a muted text button. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d3966ba788
commit
bd98ddb2a0
1 changed files with 101 additions and 28 deletions
|
|
@ -99,17 +99,25 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
|
||||
<!-- Панель действий при мультивыборе -->
|
||||
<div v-if="selectMode && hasSelected" class="bulk-actions">
|
||||
<span class="bulk-count">Выбрано: {{ messagesStore.selectedIds.size }}</span>
|
||||
<button class="bulk-btn" @click="messagesStore.markSelectedAsRead()">
|
||||
<AppIcon name="envelope" :size="11" /> Прочитать
|
||||
</button>
|
||||
<button class="bulk-btn" @click="messagesStore.flagSelected()">
|
||||
<AppIcon name="flag" :size="11" /> Флажок
|
||||
</button>
|
||||
<button class="bulk-btn danger" @click="messagesStore.deleteSelected()">
|
||||
<AppIcon name="trash" :size="11" /> Удалить
|
||||
</button>
|
||||
<button class="bulk-btn" @click="exitSelectMode">Отмена</button>
|
||||
<span class="bulk-count">
|
||||
<span class="bulk-count-num">{{ messagesStore.selectedIds.size }}</span>
|
||||
выбрано
|
||||
</span>
|
||||
<div class="bulk-btns">
|
||||
<button class="bulk-btn" @click="messagesStore.markSelectedAsRead()">
|
||||
<AppIcon name="envelope" :size="12" />
|
||||
<span>Прочитать</span>
|
||||
</button>
|
||||
<button class="bulk-btn" @click="messagesStore.flagSelected()">
|
||||
<AppIcon name="flag" :size="12" />
|
||||
<span>Флажок</span>
|
||||
</button>
|
||||
<button class="bulk-btn danger" @click="messagesStore.deleteSelected()">
|
||||
<AppIcon name="trash" :size="12" />
|
||||
<span>Удалить</span>
|
||||
</button>
|
||||
</div>
|
||||
<button class="bulk-cancel" @click="exitSelectMode">Отмена</button>
|
||||
</div>
|
||||
|
||||
<!-- Загрузка -->
|
||||
|
|
@ -274,44 +282,109 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis
|
|||
.bulk-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 6px 10px;
|
||||
background: color-mix(in srgb, var(--accent) 5%, transparent);
|
||||
border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
gap: 8px;
|
||||
padding: 7px 10px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border-bottom: 1px solid var(--glass-border);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.07),
|
||||
0 2px 12px rgba(0, 0, 0, 0.2);
|
||||
flex-shrink: 0;
|
||||
backdrop-filter: var(--blur-sm);
|
||||
-webkit-backdrop-filter: var(--blur-sm);
|
||||
backdrop-filter: blur(20px) saturate(1.6);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(1.6);
|
||||
}
|
||||
|
||||
.bulk-count {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.bulk-count-num {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
border-radius: var(--radius-full);
|
||||
padding: 0px 6px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.bulk-btns {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bulk-btn {
|
||||
font-size: 11px;
|
||||
padding: 3px 9px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--glass-bg-hover);
|
||||
border: 1px solid var(--glass-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 500;
|
||||
padding: 4px 10px;
|
||||
border-radius: var(--radius-full);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: var(--text-secondary);
|
||||
transition: background var(--transition-fast), color var(--transition-fast);
|
||||
transition:
|
||||
background var(--transition-fast),
|
||||
border-color var(--transition-fast),
|
||||
color var(--transition-fast),
|
||||
box-shadow var(--transition-fast);
|
||||
white-space: nowrap;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.bulk-btn:hover {
|
||||
background: var(--glass-bg-active);
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-color: rgba(255, 255, 255, 0.18);
|
||||
color: var(--text-primary);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||||
0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.bulk-btn:active {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.bulk-btn.danger {
|
||||
color: rgba(255, 85, 85, 0.8);
|
||||
border-color: rgba(255, 85, 85, 0.2);
|
||||
color: rgba(255, 100, 100, 0.85);
|
||||
background: rgba(220, 60, 60, 0.08);
|
||||
border-color: rgba(220, 60, 60, 0.2);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.08);
|
||||
}
|
||||
|
||||
.bulk-btn.danger:hover {
|
||||
background: rgba(255, 85, 85, 0.12);
|
||||
background: rgba(220, 60, 60, 0.15);
|
||||
border-color: rgba(220, 60, 60, 0.35);
|
||||
color: var(--danger);
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 120, 120, 0.1),
|
||||
0 2px 8px rgba(180, 40, 40, 0.2);
|
||||
}
|
||||
|
||||
.bulk-cancel {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
padding: 4px 8px;
|
||||
border-radius: var(--radius-full);
|
||||
flex-shrink: 0;
|
||||
transition: color var(--transition-fast), background var(--transition-fast);
|
||||
}
|
||||
|
||||
.bulk-cancel:hover {
|
||||
color: var(--text-secondary);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
/* Строка "выбрать все" */
|
||||
|
|
|
|||
Loading…
Reference in a new issue