@revikornmann/muka-ui 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/manifest.json +20 -10
- package/dist/cjs/components/Dialog/Dialog.css +43 -0
- package/dist/cjs/components/Dialog/Dialog.js +32 -7
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/Drawer/Drawer.css +10 -1
- package/dist/cjs/components/PlanningGantt/PlanningGantt.css +58 -0
- package/dist/cjs/components/PlanningGantt/PlanningGantt.js +5 -3
- package/dist/cjs/components/PlanningGantt/PlanningGantt.js.map +1 -1
- package/dist/cjs/components/Sheet/Sheet.css +2 -0
- package/dist/esm/components/Dialog/Dialog.css +43 -0
- package/dist/esm/components/Dialog/Dialog.js +32 -7
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Drawer/Drawer.css +10 -1
- package/dist/esm/components/PlanningGantt/PlanningGantt.css +58 -0
- package/dist/esm/components/PlanningGantt/PlanningGantt.js +6 -4
- package/dist/esm/components/PlanningGantt/PlanningGantt.js.map +1 -1
- package/dist/esm/components/Sheet/Sheet.css +2 -0
- package/dist/styles/components/Dialog.css +43 -0
- package/dist/styles/components/Drawer.css +10 -1
- package/dist/styles/components/PlanningGantt.css +58 -0
- package/dist/styles/components/Sheet.css +2 -0
- package/dist/styles/index.css +2918 -2798
- package/dist/styles/muka-dark.css +2918 -2798
- package/dist/styles/muka-light.css +2918 -2798
- package/dist/styles/tokens-bouwplan-dark.css +8 -0
- package/dist/styles/tokens-bouwplan-light.css +8 -0
- package/dist/styles/tokens-fscl-dark.css +8 -0
- package/dist/styles/tokens-fscl-light.css +8 -0
- package/dist/styles/tokens-grip-dark.css +8 -0
- package/dist/styles/tokens-grip-light.css +8 -0
- package/dist/styles/tokens-muka-dark.css +8 -0
- package/dist/styles/tokens-muka-light.css +8 -0
- package/dist/styles/tokens-wireframe-dark.css +8 -0
- package/dist/styles/tokens-wireframe-light.css +8 -0
- package/dist/styles/wireframe-dark.css +2918 -2798
- package/dist/styles/wireframe-light.css +2918 -2798
- package/dist/types/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/PlanningGantt/PlanningGantt.d.ts +13 -0
- package/dist/types/components/PlanningGantt/PlanningGantt.d.ts.map +1 -1
- package/package.json +1 -1
- package/scripts/build-tokens.js +1 -1
- package/tokens/t3-semantics/ui.json +7 -1
- package/tokens/t4-components/dialog.json +16 -0
- package/tokens/t4-components/drawer.json +19 -0
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
/* Backdrop */
|
|
21
21
|
.muka-drawer::backdrop {
|
|
22
22
|
background-color: var(--color-surface-backdrop);
|
|
23
|
+
-webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
|
|
24
|
+
backdrop-filter: blur(var(--effect-blur-backdrop));
|
|
23
25
|
opacity: 0;
|
|
24
26
|
transition: opacity 200ms ease;
|
|
25
27
|
}
|
|
@@ -122,7 +124,14 @@
|
|
|
122
124
|
.muka-drawer__body {
|
|
123
125
|
flex: 1;
|
|
124
126
|
overflow-y: auto;
|
|
125
|
-
padding: var(--
|
|
127
|
+
padding: var(--drawer-padding-x);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Roomier body on desktop; the header and footer keep their padding */
|
|
131
|
+
@media (min-width: 1024px) {
|
|
132
|
+
.muka-drawer__body {
|
|
133
|
+
padding: var(--drawer-padding-x-desktop);
|
|
134
|
+
}
|
|
126
135
|
}
|
|
127
136
|
|
|
128
137
|
/* Footer */
|
|
@@ -294,6 +294,26 @@
|
|
|
294
294
|
flex: none;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
/* Label and, optionally, a supporting line under it */
|
|
298
|
+
.muka-gantt__bar-text {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex: 1 1 auto;
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
min-width: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.muka-gantt__bar-sublabel {
|
|
306
|
+
min-width: 0;
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
text-overflow: ellipsis;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
color: var(--color-text-subtle-default);
|
|
311
|
+
font-family: var(--text-body-xs-regular-fontFamily);
|
|
312
|
+
font-weight: var(--text-body-xs-regular-fontWeight);
|
|
313
|
+
font-size: var(--text-body-xs-regular-fontSize);
|
|
314
|
+
line-height: var(--text-body-xs-regular-lineHeight);
|
|
315
|
+
}
|
|
316
|
+
|
|
297
317
|
.muka-gantt__bar-label {
|
|
298
318
|
min-width: 0;
|
|
299
319
|
overflow: hidden;
|
|
@@ -301,6 +321,38 @@
|
|
|
301
321
|
white-space: nowrap;
|
|
302
322
|
}
|
|
303
323
|
|
|
324
|
+
/* Task names in the bars: wrap to at most two lines; the bar grows with them */
|
|
325
|
+
.muka-gantt--labels-hidden .muka-gantt__bar-label {
|
|
326
|
+
display: -webkit-box;
|
|
327
|
+
-webkit-box-orient: vertical;
|
|
328
|
+
-webkit-line-clamp: 2;
|
|
329
|
+
line-clamp: 2;
|
|
330
|
+
white-space: normal;
|
|
331
|
+
/* Break between words, never inside one; hyphenate where the page's
|
|
332
|
+
language allows it, and clip a word that still doesn't fit. */
|
|
333
|
+
overflow-wrap: normal;
|
|
334
|
+
word-break: normal;
|
|
335
|
+
hyphens: auto;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Hidden task column: the label stays the row's accessible name, off screen */
|
|
339
|
+
.muka-gantt--labels-hidden .muka-gantt__row {
|
|
340
|
+
position: relative;
|
|
341
|
+
grid-template-columns: minmax(0, 1fr);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.muka-gantt--labels-hidden .muka-gantt__label {
|
|
345
|
+
position: absolute;
|
|
346
|
+
width: 1px;
|
|
347
|
+
height: 1px;
|
|
348
|
+
margin: -1px;
|
|
349
|
+
padding: 0;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
clip: rect(0, 0, 0, 0);
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
border: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
304
356
|
.muka-gantt__bar-badge {
|
|
305
357
|
flex: none;
|
|
306
358
|
display: inline-flex;
|
|
@@ -333,4 +385,10 @@
|
|
|
333
385
|
.muka-gantt__week-label {
|
|
334
386
|
min-width: 0;
|
|
335
387
|
}
|
|
388
|
+
|
|
389
|
+
/* Task names in narrow bars: the text gets the whole bar, the status icon
|
|
390
|
+
goes (the bar's accessible name and the legend still carry it). */
|
|
391
|
+
.muka-gantt--labels-hidden .muka-gantt__bar-icon {
|
|
392
|
+
display: none;
|
|
393
|
+
}
|
|
336
394
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import './PlanningGantt.css';
|
|
3
3
|
import { Button } from '../Button';
|
|
4
4
|
import { Icon } from '../Icon';
|
|
@@ -49,7 +49,7 @@ function barClasses(bar, interactive) {
|
|
|
49
49
|
* - With `onBarClick`, each bar is a native button
|
|
50
50
|
* - Status is shown as text (and icon), never by colour alone
|
|
51
51
|
*/
|
|
52
|
-
export const PlanningGantt = ({ days, rows, weekLabel, onWeekChange, disablePrevious = false, disableNext = false, hideToday = false, actions, legend, onBarClick, emptyMessage, labels, 'aria-label': ariaLabel = 'Planning', className = '', }) => {
|
|
52
|
+
export const PlanningGantt = ({ days, rows, weekLabel, onWeekChange, disablePrevious = false, disableNext = false, hideToday = false, hideRowLabels = false, actions, legend, onBarClick, emptyMessage, labels, 'aria-label': ariaLabel = 'Planning', className = '', }) => {
|
|
53
53
|
const text = { ...DEFAULT_LABELS, ...labels };
|
|
54
54
|
const statusText = { ...DEFAULT_STATUS, ...labels?.status };
|
|
55
55
|
const dayCount = Math.max(1, days.length);
|
|
@@ -62,14 +62,16 @@ export const PlanningGantt = ({ days, rows, weekLabel, onWeekChange, disablePrev
|
|
|
62
62
|
const status = bar.status ?? 'planned';
|
|
63
63
|
const label = bar.label ?? (bar.ghost || kind === 'wait' ? null : statusText[status]);
|
|
64
64
|
const barStyle = { gridColumn: `${start + 1} / span ${span}` };
|
|
65
|
-
const content = (_jsxs(_Fragment, { children: [!bar.ghost && kind !== 'wait' && status === 'done' && (_jsx(Icon, { name: "check", size: "xs", className: "muka-gantt__bar-icon" })), !bar.ghost && kind !== 'wait' && status === 'busy' && (_jsx(Icon, { name: "play", size: "xs", className: "muka-gantt__bar-icon" })), label !== null && _jsx("span", { className: "muka-gantt__bar-label", children: label }), bar.badge && _jsx("span", { className: "muka-gantt__bar-badge", children: bar.badge })] }));
|
|
65
|
+
const content = (_jsxs(_Fragment, { children: [!bar.ghost && kind !== 'wait' && status === 'done' && (_jsx(Icon, { name: "check", size: "xs", className: "muka-gantt__bar-icon" })), !bar.ghost && kind !== 'wait' && status === 'busy' && (_jsx(Icon, { name: "play", size: "xs", className: "muka-gantt__bar-icon" })), label !== null && (_jsxs("span", { className: "muka-gantt__bar-text", children: [_jsx("span", { className: "muka-gantt__bar-label", children: label }), bar.sublabel && _jsx("span", { className: "muka-gantt__bar-sublabel", children: bar.sublabel })] })), bar.badge && _jsx("span", { className: "muka-gantt__bar-badge", children: bar.badge })] }));
|
|
66
66
|
const key = bar.id ?? `${row.id}-${index}`;
|
|
67
67
|
if (interactive) {
|
|
68
68
|
return (_jsx("button", { type: "button", className: barClasses(bar, true), style: barStyle, "aria-label": bar['aria-label'], onClick: () => onBarClick?.(row, bar), children: content }, key));
|
|
69
69
|
}
|
|
70
70
|
return (_jsx("span", { className: barClasses(bar, false), style: barStyle, "aria-label": bar['aria-label'], role: bar['aria-label'] ? 'img' : undefined, children: content }, key));
|
|
71
71
|
};
|
|
72
|
-
return (_jsxs("div", { className:
|
|
72
|
+
return (_jsxs("div", { className: ['muka-gantt', hideRowLabels && 'muka-gantt--labels-hidden', className]
|
|
73
|
+
.filter(Boolean)
|
|
74
|
+
.join(' '), style: style, children: [_jsxs("div", { className: "muka-gantt__toolbar", children: [onWeekChange && (_jsxs("div", { className: "muka-gantt__pager", children: [!hideToday && (_jsx(Button, { variant: "secondary", size: "sm", onClick: () => onWeekChange('today'), children: text.today })), _jsxs("div", { className: "muka-gantt__pager-group", children: [_jsx(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": text.previousWeek, disabled: disablePrevious, onClick: () => onWeekChange('previous'), children: _jsx(Icon, { name: "arrow-left-s", size: "sm" }) }), _jsx("span", { className: "muka-gantt__week-label", "aria-live": "polite", children: weekLabel }), _jsx(Button, { variant: "ghost", size: "sm", iconOnly: true, "aria-label": text.nextWeek, disabled: disableNext, onClick: () => onWeekChange('next'), children: _jsx(Icon, { name: "arrow-right-s", size: "sm" }) })] })] })), !onWeekChange && _jsx("span", { className: "muka-gantt__week-label", children: weekLabel }), actions && _jsx("div", { className: "muka-gantt__actions", children: actions })] }), legend && legend.length > 0 && (_jsx("ul", { className: "muka-gantt__legend", children: legend.map((item, i) => {
|
|
73
75
|
const kind = item.kind ?? 'task';
|
|
74
76
|
const swatch = [
|
|
75
77
|
'muka-gantt__swatch',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanningGantt.js","sourceRoot":"","sources":["../../../../components/PlanningGantt/PlanningGantt.tsx"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"PlanningGantt.js","sourceRoot":"","sources":["../../../../components/PlanningGantt/PlanningGantt.tsx"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAwI/B,MAAM,cAAc,GAAwC;IAC1D,O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EAAC,wBAAwB,YAAE,GAAG,CAAC,KAAK,GAAQ,EAC1D,GAAG,CAAC,QAAQ,IAAI,eAAM,SAAS,EAAC,sBAAsB,YAAE,GAAG,CAAC,QAAQ,GAAQ,IACxE,EACP,eAAK,IAAI,EAAC,MAAM,kBAAe,QAAQ,EAAE,SAAS,EAAC,mBAAmB,aACnE,QAAQ,EACR,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EACnE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,IACxE,KATE,GAAG,CAAC,EAAE,CAUV,CACP,CAAC,IACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
|
|
22
22
|
.muka-dialog::backdrop {
|
|
23
23
|
background-color: var(--dialog-color-backdrop);
|
|
24
|
+
-webkit-backdrop-filter: blur(var(--dialog-backdrop-blur));
|
|
25
|
+
backdrop-filter: blur(var(--dialog-backdrop-blur));
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
/* ─── Non-modal modifier ──────────────────────────────── */
|
|
@@ -158,6 +160,40 @@
|
|
|
158
160
|
cursor: grabbing;
|
|
159
161
|
}
|
|
160
162
|
|
|
163
|
+
/* ─── Desktop entrance animation (≥ 1024px) ─────────── */
|
|
164
|
+
|
|
165
|
+
/* The card rises into place while it fades in, then drops back out in half
|
|
166
|
+
the time. A transition takes its timing from the state it moves to, so the
|
|
167
|
+
resting rule carries the exit and the --slide-in rule the entrance. Reduced
|
|
168
|
+
motion zeroes both durations. */
|
|
169
|
+
@media (min-width: 1024px) {
|
|
170
|
+
.muka-dialog .muka-dialog__surface {
|
|
171
|
+
transform: translateY(var(--dialog-motion-offset-desktop));
|
|
172
|
+
opacity: 0;
|
|
173
|
+
transition:
|
|
174
|
+
transform var(--motion-duration-exit) var(--motion-easing-exit),
|
|
175
|
+
opacity var(--motion-duration-exit) var(--motion-easing-exit);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.muka-dialog--slide-in .muka-dialog__surface {
|
|
179
|
+
transform: translateY(0);
|
|
180
|
+
opacity: 1;
|
|
181
|
+
transition:
|
|
182
|
+
transform var(--motion-duration-component) var(--motion-easing-enter),
|
|
183
|
+
opacity var(--motion-duration-component) var(--motion-easing-enter);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.muka-dialog::backdrop {
|
|
187
|
+
opacity: 0;
|
|
188
|
+
transition: opacity var(--motion-duration-exit) var(--motion-easing-exit);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.muka-dialog--slide-in::backdrop {
|
|
192
|
+
opacity: 1;
|
|
193
|
+
transition: opacity var(--motion-duration-component) var(--motion-easing-enter);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
161
197
|
/* ─── Desktop overrides (≥ 1024px) ────────────────────── */
|
|
162
198
|
|
|
163
199
|
@media (min-width: 1024px) {
|
|
@@ -177,6 +213,13 @@
|
|
|
177
213
|
width: 100%;
|
|
178
214
|
}
|
|
179
215
|
|
|
216
|
+
/* Roomier body on desktop; the TopBar and BottomBar keep their padding */
|
|
217
|
+
.muka-dialog--sm .muka-dialog__body,
|
|
218
|
+
.muka-dialog--md .muka-dialog__body,
|
|
219
|
+
.muka-dialog--lg .muka-dialog__body {
|
|
220
|
+
padding: var(--dialog-padding-x-desktop);
|
|
221
|
+
}
|
|
222
|
+
|
|
180
223
|
/* Half-height override not needed on desktop */
|
|
181
224
|
.muka-dialog--mobile-half .muka-dialog__surface {
|
|
182
225
|
height: auto;
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
/* Backdrop */
|
|
21
21
|
.muka-drawer::backdrop {
|
|
22
22
|
background-color: var(--color-surface-backdrop);
|
|
23
|
+
-webkit-backdrop-filter: blur(var(--effect-blur-backdrop));
|
|
24
|
+
backdrop-filter: blur(var(--effect-blur-backdrop));
|
|
23
25
|
opacity: 0;
|
|
24
26
|
transition: opacity 200ms ease;
|
|
25
27
|
}
|
|
@@ -122,7 +124,14 @@
|
|
|
122
124
|
.muka-drawer__body {
|
|
123
125
|
flex: 1;
|
|
124
126
|
overflow-y: auto;
|
|
125
|
-
padding: var(--
|
|
127
|
+
padding: var(--drawer-padding-x);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Roomier body on desktop; the header and footer keep their padding */
|
|
131
|
+
@media (min-width: 1024px) {
|
|
132
|
+
.muka-drawer__body {
|
|
133
|
+
padding: var(--drawer-padding-x-desktop);
|
|
134
|
+
}
|
|
126
135
|
}
|
|
127
136
|
|
|
128
137
|
/* Footer */
|
|
@@ -294,6 +294,26 @@
|
|
|
294
294
|
flex: none;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
/* Label and, optionally, a supporting line under it */
|
|
298
|
+
.muka-gantt__bar-text {
|
|
299
|
+
display: flex;
|
|
300
|
+
flex: 1 1 auto;
|
|
301
|
+
flex-direction: column;
|
|
302
|
+
min-width: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.muka-gantt__bar-sublabel {
|
|
306
|
+
min-width: 0;
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
text-overflow: ellipsis;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
color: var(--color-text-subtle-default);
|
|
311
|
+
font-family: var(--text-body-xs-regular-fontFamily);
|
|
312
|
+
font-weight: var(--text-body-xs-regular-fontWeight);
|
|
313
|
+
font-size: var(--text-body-xs-regular-fontSize);
|
|
314
|
+
line-height: var(--text-body-xs-regular-lineHeight);
|
|
315
|
+
}
|
|
316
|
+
|
|
297
317
|
.muka-gantt__bar-label {
|
|
298
318
|
min-width: 0;
|
|
299
319
|
overflow: hidden;
|
|
@@ -301,6 +321,38 @@
|
|
|
301
321
|
white-space: nowrap;
|
|
302
322
|
}
|
|
303
323
|
|
|
324
|
+
/* Task names in the bars: wrap to at most two lines; the bar grows with them */
|
|
325
|
+
.muka-gantt--labels-hidden .muka-gantt__bar-label {
|
|
326
|
+
display: -webkit-box;
|
|
327
|
+
-webkit-box-orient: vertical;
|
|
328
|
+
-webkit-line-clamp: 2;
|
|
329
|
+
line-clamp: 2;
|
|
330
|
+
white-space: normal;
|
|
331
|
+
/* Break between words, never inside one; hyphenate where the page's
|
|
332
|
+
language allows it, and clip a word that still doesn't fit. */
|
|
333
|
+
overflow-wrap: normal;
|
|
334
|
+
word-break: normal;
|
|
335
|
+
hyphens: auto;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Hidden task column: the label stays the row's accessible name, off screen */
|
|
339
|
+
.muka-gantt--labels-hidden .muka-gantt__row {
|
|
340
|
+
position: relative;
|
|
341
|
+
grid-template-columns: minmax(0, 1fr);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.muka-gantt--labels-hidden .muka-gantt__label {
|
|
345
|
+
position: absolute;
|
|
346
|
+
width: 1px;
|
|
347
|
+
height: 1px;
|
|
348
|
+
margin: -1px;
|
|
349
|
+
padding: 0;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
clip: rect(0, 0, 0, 0);
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
border: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
304
356
|
.muka-gantt__bar-badge {
|
|
305
357
|
flex: none;
|
|
306
358
|
display: inline-flex;
|
|
@@ -333,4 +385,10 @@
|
|
|
333
385
|
.muka-gantt__week-label {
|
|
334
386
|
min-width: 0;
|
|
335
387
|
}
|
|
388
|
+
|
|
389
|
+
/* Task names in narrow bars: the text gets the whole bar, the status icon
|
|
390
|
+
goes (the bar's accessible name and the legend still carry it). */
|
|
391
|
+
.muka-gantt--labels-hidden .muka-gantt__bar-icon {
|
|
392
|
+
display: none;
|
|
393
|
+
}
|
|
336
394
|
}
|