Neue Verwaltung der Gruppenzuordnung 1:n
This commit is contained in:
1 parent
fa02a7ade0
commit
02c017d53d
34 files changed
+1306
-251
No files matched your search
@@ -103,11 +103,6 @@ body.dispatcher-page main.container {
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
.clock-row > #speakerButton {
|
||||
flex: 0 0 auto;
|
||||
margin: 0 0.25rem;
|
||||
}
|
||||
|
||||
.clock-date {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
@@ -254,6 +249,9 @@ body.dispatcher-page main.container {
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
--background-color: var(--primary);
|
||||
--border-color: var(--primary);
|
||||
--color: var(--primary-inverse);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -262,22 +260,28 @@ body.dispatcher-page main.container {
|
||||
height: 2.5rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: var(--border-width) solid var(--border-color);
|
||||
border-radius: 0.55rem;
|
||||
background-color: var(--background-color);
|
||||
color: var(--color);
|
||||
font-size: 1.2rem;
|
||||
line-height: 1;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.icon-button {
|
||||
border: 1px solid var(--dispatcher-border-strong);
|
||||
background: var(--form-element-background-color, #fff);
|
||||
color: inherit;
|
||||
a.icon-button:is(:hover, :focus-visible) {
|
||||
--background-color: var(--primary-hover);
|
||||
--border-color: var(--primary-hover);
|
||||
}
|
||||
|
||||
a.icon-button:focus-visible {
|
||||
box-shadow: 0 0 0 var(--outline-width) var(--primary-focus);
|
||||
}
|
||||
|
||||
.icon-button.active {
|
||||
background: #2f6fdb;
|
||||
border-color: #2f6fdb;
|
||||
color: #fff;
|
||||
--background-color: var(--primary-hover);
|
||||
--border-color: var(--primary-hover);
|
||||
--color: var(--primary-inverse);
|
||||
}
|
||||
|
||||
.connection-status {
|
||||
@@ -294,6 +298,41 @@ a.icon-button {
|
||||
color: #b42318;
|
||||
}
|
||||
|
||||
.header-status-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
margin-top: 0.45rem;
|
||||
}
|
||||
|
||||
.header-status-row .connection-status {
|
||||
flex: 1 1 auto;
|
||||
margin-top: 0;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header-action-buttons {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.header-action-buttons .icon-button {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
}
|
||||
|
||||
.group-assignment-button svg {
|
||||
display: block;
|
||||
width: 1.8rem;
|
||||
height: 1.35rem;
|
||||
}
|
||||
|
||||
/* ---------- Accordion ---------- */
|
||||
|
||||
.group-accordion {
|
||||
@@ -311,7 +350,8 @@ a.icon-button {
|
||||
}
|
||||
|
||||
.group-item {
|
||||
margin: 0 0 0.55rem;
|
||||
--group-control-size: 2rem;
|
||||
margin: 0 0 0.45rem;
|
||||
border: 1px solid var(--dispatcher-border);
|
||||
border-radius: 0.65rem;
|
||||
background: var(--card-background-color, #fff);
|
||||
@@ -321,8 +361,8 @@ a.icon-button {
|
||||
.group-item > summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.55rem;
|
||||
padding: 0.65rem 0.75rem;
|
||||
gap: 0.45rem;
|
||||
padding: 0.5rem 0.65rem;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
user-select: none;
|
||||
@@ -371,67 +411,93 @@ a.icon-button {
|
||||
}
|
||||
|
||||
.group-details {
|
||||
padding: 0 0.75rem 0.75rem;
|
||||
padding: 0 0.65rem 0.55rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.6rem;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.group-position-row {
|
||||
.group-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.group-position-row .icon-button {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
font-size: 1.05rem;
|
||||
.group-controls .icon-button {
|
||||
width: var(--group-control-size);
|
||||
height: var(--group-control-size);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.group-position-row progress {
|
||||
flex: 1 1 auto;
|
||||
width: auto;
|
||||
height: 0.75rem;
|
||||
margin: 0;
|
||||
/* Circular freshness indicator: a full circle is 100 % / Live. */
|
||||
.group-progress-circle {
|
||||
--progress: 0;
|
||||
--progress-color: #2f6fdb;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
width: var(--group-control-size);
|
||||
height: var(--group-control-size);
|
||||
border-radius: 50%;
|
||||
background: conic-gradient(
|
||||
var(--progress-color) calc(var(--progress) * 1%),
|
||||
var(--dispatcher-subtle-bg) 0
|
||||
);
|
||||
}
|
||||
|
||||
.group-position-meta {
|
||||
font-size: 0.72rem;
|
||||
.group-progress-circle.is-live {
|
||||
--progress-color: #2e9e4f;
|
||||
}
|
||||
|
||||
.group-progress-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: calc(100% - 0.4rem);
|
||||
height: calc(100% - 0.4rem);
|
||||
border-radius: 50%;
|
||||
background: var(--card-background-color, #fff);
|
||||
color: var(--muted-color, #5b6771);
|
||||
font-size: 0.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.group-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
.group-progress-circle.is-live .group-progress-text {
|
||||
color: #18794e;
|
||||
}
|
||||
|
||||
.group-crosshair,
|
||||
.group-streets,
|
||||
.group-alias {
|
||||
width: 2.35rem;
|
||||
height: 2.35rem;
|
||||
width: var(--group-control-size);
|
||||
height: var(--group-control-size);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 1.1rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.group-state-select {
|
||||
.group-controls select.group-state-select {
|
||||
flex: 1 1 auto;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
height: 2.35rem;
|
||||
height: var(--group-control-size);
|
||||
margin: 0;
|
||||
padding: 0.25rem 1.8rem 0.25rem 0.55rem;
|
||||
font-size: 0.78rem;
|
||||
padding: 0.15rem 1.35rem 0.15rem 0.4rem;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.group-message {
|
||||
height: 1.9rem;
|
||||
margin: 0;
|
||||
padding: 0.2rem 0.5rem;
|
||||
cursor: pointer;
|
||||
background: var(--dispatcher-subtle-bg);
|
||||
font-size: 0.82rem;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.group-message:focus {
|
||||
@@ -527,6 +593,142 @@ dialog article > .dialog-body {
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
|
||||
/* Gruppen-Accounts den Gruppen zuordnen */
|
||||
dialog.group-assignment-dialog article {
|
||||
width: min(72rem, 94vw);
|
||||
max-width: 94vw;
|
||||
}
|
||||
|
||||
.group-assignment-hint {
|
||||
margin: 0 0 0.65rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--muted-color, #5b6771);
|
||||
}
|
||||
|
||||
.group-assignment-scroll {
|
||||
max-width: 100%;
|
||||
max-height: min(58dvh, 34rem);
|
||||
overflow: auto;
|
||||
overscroll-behavior: contain;
|
||||
border: 1px solid var(--dispatcher-border);
|
||||
border-radius: 0.55rem;
|
||||
}
|
||||
|
||||
.group-assignment-table {
|
||||
--assignment-choice-column-width: 4.8rem;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.group-assignment-table th,
|
||||
.group-assignment-table td {
|
||||
padding: 0.38rem 0.55rem;
|
||||
border-bottom: 1px solid var(--dispatcher-border);
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.group-assignment-table tbody tr:last-child th,
|
||||
.group-assignment-table tbody tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.group-assignment-table .assignment-account-header,
|
||||
.group-assignment-table .assignment-account-name {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
min-width: 4.5rem;
|
||||
max-width: 16rem;
|
||||
background: var(--card-background-color, #fff);
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.group-assignment-table .assignment-account-header {
|
||||
z-index: 3;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.group-assignment-table .assignment-account-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.group-assignment-table .assignment-spacer-header,
|
||||
.group-assignment-table .assignment-spacer-cell {
|
||||
width: 100%;
|
||||
min-width: var(--assignment-right-space, 2rem);
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.group-assignment-table .not-participating-header,
|
||||
.group-assignment-table .not-participating-cell {
|
||||
background: rgba(214, 40, 40, 0.12);
|
||||
border-right: 2px solid rgba(214, 40, 40, 0.45);
|
||||
border-left: 2px solid rgba(214, 40, 40, 0.45);
|
||||
}
|
||||
|
||||
.group-assignment-table .not-participating-header {
|
||||
color: #b42318;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.group-assignment-table .group-column-header,
|
||||
.group-assignment-table .not-participating-header {
|
||||
position: relative;
|
||||
width: var(--assignment-choice-column-width);
|
||||
min-width: var(--assignment-choice-column-width);
|
||||
height: var(--group-header-height, 6.2rem);
|
||||
padding: 0 0.2rem 0.4rem;
|
||||
vertical-align: bottom;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.group-assignment-table .group-column-header {
|
||||
border-left: 1px solid var(--dispatcher-border);
|
||||
}
|
||||
|
||||
.group-assignment-table .not-participating-header .group-column-label {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.group-assignment-table .group-column-label {
|
||||
position: absolute;
|
||||
left: 0.7rem;
|
||||
bottom: 0.55rem;
|
||||
display: block;
|
||||
transform: rotate(-45deg);
|
||||
transform-origin: left bottom;
|
||||
white-space: nowrap;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.group-assignment-table .group-assignment-cell,
|
||||
.group-assignment-table .not-participating-cell {
|
||||
width: var(--assignment-choice-column-width);
|
||||
min-width: var(--assignment-choice-column-width);
|
||||
}
|
||||
|
||||
.group-assignment-table input[type="radio"] {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.group-assignment-empty {
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
border-radius: 0.5rem;
|
||||
background: var(--dispatcher-subtle-bg);
|
||||
color: var(--muted-color, #5b6771);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Nicht-modaler Straßendialog: bleibt neben der Karte bedienbar. */
|
||||
dialog.group-streets-dialog {
|
||||
position: fixed;
|
||||
@@ -851,11 +1053,6 @@ dialog.group-streets-dialog.is-dragging article header {
|
||||
height: 2.25rem;
|
||||
}
|
||||
|
||||
.clock-row > #speakerButton {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
}
|
||||
|
||||
.clock-time {
|
||||
font-size: 1.55rem;
|
||||
}
|
||||
@@ -894,6 +1091,34 @@ html[data-theme="dark"] .connection-status.disconnected {
|
||||
color: #ff8b8b;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-assignment-table .assignment-account-header,
|
||||
html[data-theme="dark"] .group-assignment-table .assignment-account-name {
|
||||
background: var(--card-background-color, #111827);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-assignment-table .not-participating-header,
|
||||
html[data-theme="dark"] .group-assignment-table .not-participating-cell {
|
||||
background: rgba(255, 99, 99, 0.17);
|
||||
border-right-color: rgba(255, 139, 139, 0.5);
|
||||
border-left-color: rgba(255, 139, 139, 0.5);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-assignment-table .not-participating-header {
|
||||
color: #ffb4b4;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-progress-circle {
|
||||
--progress-color: #58a6ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-progress-circle.is-live {
|
||||
--progress-color: #5bd6a2;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .group-progress-circle.is-live .group-progress-text {
|
||||
color: #5bd6a2;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .street-search-status.error {
|
||||
color: #ff8b8b;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user