v2026.5.23 — Polish UX

This commit is contained in:
Quentin Rouiller
2026-04-23 15:31:44 +02:00
parent ddb075d563
commit f7f81f7d9d
3 changed files with 307 additions and 18 deletions
+101 -16
View File
@@ -2593,45 +2593,105 @@ header.topbar::before {
v2026.5.19 : refonte — élément .pinned-popup-minref créé à la volée
v2026.5.21 : agrandi pour que la ref tienne sans déborder
v2026.5.22 : encore agrandi + plus d'espace entre dragbar et topbar
v2026.5.23 : refonte complète en style "onglet" single-line, compact
========================================================================== */
.pinned-popup.pinned-popup-minimized {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
min-width: 300px !important;
max-width: 360px !important;
width: 300px !important;
height: auto !important;
min-height: 80px !important;
padding: 44px 16px 16px 16px !important;
max-width: 400px !important;
width: auto !important;
height: 36px !important;
min-height: 36px !important;
padding: 0 6px 0 4px !important;
overflow: visible;
background: var(--bg-elevated) !important;
border: 1px solid var(--border) !important;
border-radius: 6px !important;
}
/* Séparer visuellement la dragbar (collée en haut) des boutons topbar */
/* Dans le mode minimisé, la topbar n'est plus en absolute : elle se pose en fin
de ligne à droite, après la ref */
.pinned-popup.pinned-popup-minimized .pinned-popup-topbar {
top: 14px !important; /* sous la dragbar (qui fait ~6-8px) */
position: static !important;
top: auto !important;
right: auto !important;
margin-left: auto !important;
order: 3;
flex-shrink: 0;
padding: 0 2px;
}
/* Masquer tous les enfants directs du popup minimisé */
/* La dragbar devient un simple "handle" à gauche (≡) */
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar {
position: static !important;
top: auto !important;
left: auto !important;
right: auto !important;
order: 1;
flex-shrink: 0;
width: 18px !important;
height: 22px !important;
background: transparent !important;
border: none !important;
cursor: grab;
display: flex !important;
align-items: center;
justify-content: center;
color: var(--text-faint);
opacity: 0.6;
transition: opacity 0.12s, color 0.12s;
}
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar::before {
content: "≡";
font-size: 15px;
line-height: 1;
}
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar:hover {
opacity: 1;
color: var(--text);
}
.pinned-popup.pinned-popup-minimized.dragging .pinned-popup-dragbar {
cursor: grabbing;
}
/* Masquer tous les enfants directs SAUF topbar, dragbar et minref */
.pinned-popup.pinned-popup-minimized > *:not(.pinned-popup-topbar):not(.pinned-popup-dragbar):not(.pinned-popup-minref) {
display: none !important;
}
/* L'élément ref dédié, centré et gros */
/* La ref au centre, cliquable pour agrandir */
.pinned-popup-minref {
display: block;
text-align: center;
padding: 10px 12px;
display: flex;
align-items: center;
flex: 1;
min-width: 0;
padding: 0 10px;
font-family: var(--mono, monospace);
font-size: 15px;
font-size: 14px;
font-weight: 700;
color: var(--text);
cursor: pointer;
user-select: none;
border-radius: 4px;
transition: background 0.12s;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
order: 2;
}
.pinned-popup-minref:hover {
background: var(--bg-muted);
color: var(--accent, #3b82f6);
}
/* Boutons plus petits en mode minimisé */
.pinned-popup.pinned-popup-minimized .pinned-popup-btn {
width: 22px !important;
height: 22px !important;
font-size: 12px !important;
}
.pinned-popup.pinned-popup-minimized .pinned-popup-refresh svg {
width: 12px;
height: 12px;
}
/* ==========================================================================
@@ -2910,3 +2970,28 @@ body.popup-dragging .pinned-popup {
background: rgba(239, 68, 68, 0.15);
border-radius: 4px;
}
/* ==========================================================================
v2026.5.23 : drag & drop des pastilles du dock
========================================================================== */
.pinned-popup-dock-pill {
cursor: grab;
user-select: none;
transition: opacity 0.15s, transform 0.12s;
}
.pinned-popup-dock-pill:active {
cursor: grabbing;
}
.pinned-popup-dock-pill.pill-dragging {
opacity: 0.3 !important;
pointer-events: none;
}
.pill-dragging-ghost {
animation: pill-ghost-bounce 0.2s ease-out;
transform: scale(1.05);
box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
@keyframes pill-ghost-bounce {
from { transform: scale(1); }
to { transform: scale(1.05); }
}