Files
wekan/client/components/main/workload.css
T
Lauri Ojansivu 1032b472f3 Budget and billing, Workload and the Cloud Panel: saves show, forms render, PDFs print.
Found by running their Chromium specs through build.sh:

- Budget and billing did not refresh after a save: the board pane read the
  current template data inside a promise, where there is none. It uses its
  own instance's data now, and a save refreshes only the board's detail and
  its row, without the spinner that took the pane down and without the
  billingBoards call that ran into its rate limit.
- Workload's capacity form lost its "saved" note: the refresh after a save
  showed the spinner, which replaces the form. The spinner is now only for the
  first load.
- The Cloud Panel's forms did not render: a function passed to an inclusion as
  done=done is called by Spacebars, so they received its result. Errors and
  the domain being edited are module state now.
- The checkboxes of the three pages were hidden by the app-wide form styles;
  each page shows its own again.
- An invoice PDF failed in the bundle with "Cannot find module
  #standard-fonts/Helvetica": pdfkit is given the bundled font.

Tests: templateDataInPromise, spacebarsFunctionArgs and nativeCheckboxesShown
find each shape anywhere in the client, invoiceFiles requires the font in
every PDFDocument, and workload pins the spinner to the first load.

Thanks to xet7 !
2026-11-22 07:20:48 +02:00

207 lines
4.4 KiB
CSS

/* Workload page (docs/Features/Workload/Workload.md). */
.workload-page {
padding: 1rem;
max-width: 100%;
box-sizing: border-box;
}
.workload-intro {
max-width: 70ch;
opacity: 0.85;
}
.workload-controls {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 0.8rem;
align-items: center;
}
.workload-controls input,
.workload-controls select {
width: auto;
margin: 0;
}
.workload-legend {
display: flex;
flex-wrap: wrap;
gap: 0.3rem 1rem;
align-items: center;
margin: 0.5rem 0 1rem;
}
.workload-swatch {
display: inline-block;
width: 1rem;
height: 0.6rem;
border-radius: 2px;
margin-inline-end: 0.3rem;
vertical-align: middle;
}
/* The three states, the colours also used by the bars below. Over 100 % is
red; under half full is grey-blue; in between green. */
.workload-swatch.is-ok,
.workload-cell.is-ok .workload-bar-fill { background: #3cb500; }
.workload-swatch.is-under,
.workload-cell.is-under .workload-bar-fill { background: #8ea6c0; }
.workload-swatch.is-over,
.workload-cell.is-over .workload-bar-fill { background: #e53935; }
.workload-table-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.workload-table {
border-collapse: collapse;
min-width: 100%;
}
.workload-table th,
.workload-table td {
border: 1px solid rgba(0, 0, 0, 0.12);
padding: 0.35rem 0.45rem;
vertical-align: top;
text-align: start;
}
.workload-week-header span {
display: block;
white-space: nowrap;
}
.workload-week-date {
font-weight: normal;
font-size: 0.85em;
opacity: 0.75;
}
.workload-person {
min-width: 10rem;
}
.workload-person-name {
display: block;
}
.workload-person-capacity {
display: block;
font-weight: normal;
font-size: 0.8em;
opacity: 0.75;
}
.workload-cell {
min-width: 7rem;
}
.workload-cell a {
display: block;
color: inherit;
text-decoration: none;
cursor: pointer;
}
.workload-cell.is-over {
background: rgba(229, 57, 53, 0.1);
}
.workload-bar {
height: 0.5rem;
background: rgba(0, 0, 0, 0.08);
border-radius: 3px;
overflow: hidden;
margin-bottom: 0.2rem;
}
.workload-bar-fill {
height: 100%;
}
.workload-cell-value,
.workload-cell-percent,
.workload-cell-allocation,
.workload-cell-absent,
.workload-cell-holiday {
display: block;
font-size: 0.85em;
white-space: nowrap;
}
.workload-cell.is-over .workload-cell-percent {
color: #c62828;
font-weight: bold;
}
.workload-cell.is-placeholder {
background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03) 6px, transparent 6px, transparent 12px);
}
.workload-unassigned th,
.workload-placeholder th {
font-style: italic;
}
.workload-overdue { color: #c62828; }
.workload-card-list {
margin: 0;
padding-inline-start: 1.2rem;
}
.workload-card-hours {
margin-inline-start: 0.5rem;
opacity: 0.75;
}
.workload-planning {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}
.workload-section {
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;
padding: 0.75rem;
}
.workload-section h2 {
margin-top: 0;
font-size: 1.1rem;
}
.workload-section label {
display: block;
margin-top: 0.4rem;
}
.workload-days {
border: none;
padding: 0;
margin: 0.5rem 0;
}
.workload-days label {
display: inline-block;
margin-inline-end: 0.6rem;
}
.workload-list {
padding-inline-start: 1.2rem;
}
.workload-list a {
margin-inline-start: 0.5rem;
cursor: pointer;
}
.workload-saved {
margin-inline-start: 0.5rem;
color: #2e7d32;
}
@media screen and (max-width: 800px) {
.workload-page { padding: 0.5rem; }
.workload-person { min-width: 7rem; }
.workload-cell { min-width: 5.5rem; }
}
/* Utilization and skills (docs/Features/Workload/Workload.md). */
.workload-person-utilization,
.workload-placeholder-skill,
.workload-candidates {
display: block;
font-size: 0.8em;
color: #555;
}
.workload-person-utilization.is-below {
color: #b71c1c;
}
/* Labelled native checkboxes: the app-wide material form rule
(client/components/forms/forms.css) hides native checkboxes three ways -
display, visibility, an offset - which left these with a label and no box
to tick or see ticked. All three are undone, as in cardFlow.css. */
.workload-page input[type="checkbox"] {
display: inline-block;
visibility: visible;
position: static;
inset-inline-start: auto;
width: 16px;
height: 16px;
min-height: 0;
margin: 0;
margin-inline-end: 4px;
flex: none;
}