mirror of
git://f0xx.org/android_cast
synced 2026-07-29 03:38:52 +03:00
sync
This commit is contained in:
@@ -1757,12 +1757,42 @@ button.report-tag--filter:hover {
|
||||
opacity: 0.55;
|
||||
outline: 2px dashed var(--accent);
|
||||
}
|
||||
.graphs-grid .card.card--lift h3.graph-brick-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.graph-brick-drag-handle {
|
||||
flex-shrink: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin: -2px 0;
|
||||
padding: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--surface2);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
line-height: 1;
|
||||
cursor: grab;
|
||||
user-select: none;
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted);
|
||||
margin-left: 0.35rem;
|
||||
touch-action: none;
|
||||
}
|
||||
.graph-brick-drag-handle:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
background: var(--row-hover);
|
||||
}
|
||||
.graph-brick-drag-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
.graph-brick-drag-grip {
|
||||
font-size: 12px;
|
||||
letter-spacing: -2px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.graph-brick-tip {
|
||||
position: absolute;
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
"col.expand": "Expand",
|
||||
"col.drag": "Drag column",
|
||||
"col.drag_reorder": "Drag column to reorder",
|
||||
"graphs.brick_drag": "Drag chart to reorder",
|
||||
"row.show_summary": "Show summary",
|
||||
"row.open_report": "Click to open full report",
|
||||
"row.edit_tags": "Edit tags",
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
"col.expand": "Развернуть",
|
||||
"col.drag": "Перетащить столбец",
|
||||
"col.drag_reorder": "Перетащите для смены порядка столбцов",
|
||||
"graphs.brick_drag": "Перетащите график для смены порядка",
|
||||
"row.show_summary": "Показать сводку",
|
||||
"row.open_report": "Нажмите, чтобы открыть полный отчёт",
|
||||
"row.edit_tags": "Редактировать метки",
|
||||
|
||||
@@ -487,12 +487,17 @@
|
||||
card.setAttribute('data-brick-id', kpi.id.replace(/^graph-/, ''));
|
||||
}
|
||||
if (title && !title.querySelector('.graph-brick-drag-handle')) {
|
||||
const handle = document.createElement('span');
|
||||
title.classList.add('graph-brick-head');
|
||||
const dragLabel =
|
||||
(typeof window.t === 'function' && window.t('graphs.brick_drag')) || 'Drag to reorder';
|
||||
const handle = document.createElement('button');
|
||||
handle.type = 'button';
|
||||
handle.className = 'graph-brick-drag-handle';
|
||||
handle.textContent = '⋮⋮';
|
||||
handle.title = 'Drag to reorder';
|
||||
handle.setAttribute('draggable', 'true');
|
||||
title.appendChild(handle);
|
||||
handle.setAttribute('aria-label', dragLabel);
|
||||
handle.title = dragLabel;
|
||||
handle.innerHTML = '<span class="graph-brick-drag-grip" aria-hidden="true">⋮⋮</span>';
|
||||
title.insertBefore(handle, title.firstChild);
|
||||
}
|
||||
if (canvas && !card.querySelector('.graph-brick-tip')) {
|
||||
const tip = document.createElement('p');
|
||||
|
||||
Reference in New Issue
Block a user