@atolis-hq/corum 0.1.54 → 0.1.56
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/package.json +4 -2
- package/web/app.jsx +107 -18
- package/web/primitives.jsx +62 -52
- package/web/style.css +92 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atolis-hq/corum",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"mcp": "node dist/src/mcp/index.js",
|
|
21
21
|
"mcp:smoke": "npm run build && node scripts/mcp-smoke.mjs",
|
|
22
22
|
"mcp:write-smoke": "npm run build && node scripts/mcp-write-smoke.mjs",
|
|
23
|
-
"web": "node dist/src/web/server.js"
|
|
23
|
+
"web": "node dist/src/web/server.js",
|
|
24
|
+
"test:web": "npm run build && playwright test"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@apidevtools/swagger-parser": "^12.1.0",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"yaml": "^2.3.4"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
38
|
+
"@playwright/test": "^1.65.1",
|
|
37
39
|
"@types/express": "^4.17.25",
|
|
38
40
|
"@types/node": "^24.0.0",
|
|
39
41
|
"@types/swagger-parser": "^4.0.3",
|
package/web/app.jsx
CHANGED
|
@@ -215,12 +215,17 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
return (
|
|
218
|
-
<div className="nav-tree"
|
|
218
|
+
<div className="nav-tree" onKeyDown={event => {
|
|
219
|
+
if ((event.key === 'Enter' || event.key === ' ') && event.target.getAttribute('role') === 'button') {
|
|
220
|
+
event.preventDefault();
|
|
221
|
+
event.target.click();
|
|
222
|
+
}
|
|
223
|
+
}}>
|
|
219
224
|
{sortedComponents.map(component => {
|
|
220
225
|
const entries = navTree.get(component);
|
|
221
226
|
return (
|
|
222
227
|
<div key={component}>
|
|
223
|
-
<div className="nav-section-head" onClick={() => toggleComponent(component)}>
|
|
228
|
+
<div className="nav-section-head" role="button" tabIndex={0} aria-expanded={openComponent === component} onClick={() => toggleComponent(component)}>
|
|
224
229
|
<span>{component}</span>
|
|
225
230
|
<Icon name={openComponent === component ? 'chevron-down' : 'chevron-right'} size={12} />
|
|
226
231
|
</div>
|
|
@@ -230,7 +235,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
230
235
|
const gOpen = openEntryKeys.has(gKey);
|
|
231
236
|
return (
|
|
232
237
|
<div key={entry.groupTemplateName}>
|
|
233
|
-
<div className="nav-template-head" onClick={() => toggleEntry(gKey)} style={{ cursor: 'pointer' }}>
|
|
238
|
+
<div className="nav-template-head" role="button" tabIndex={0} aria-expanded={gOpen} onClick={() => toggleEntry(gKey)} style={{ cursor: 'pointer' }}>
|
|
234
239
|
{entry.icon && (
|
|
235
240
|
<i
|
|
236
241
|
className={`fa-solid fa-${entry.icon}`}
|
|
@@ -257,6 +262,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
257
262
|
<div
|
|
258
263
|
key={node.id}
|
|
259
264
|
className={`nav-node-item${isActive ? ' active' : ''}`}
|
|
265
|
+
role="button" tabIndex={0} aria-current={isActive ? 'true' : undefined}
|
|
260
266
|
onClick={() => onNode(node.id)}
|
|
261
267
|
title={node.id}
|
|
262
268
|
style={isActive ? { '--nav-node-active-bg': child.colour } : undefined}
|
|
@@ -282,7 +288,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
282
288
|
const tOpen = openEntryKeys.has(tKey);
|
|
283
289
|
return (
|
|
284
290
|
<div key={entry.templateName}>
|
|
285
|
-
<div className="nav-template-head" onClick={() => toggleEntry(tKey)} style={{ cursor: 'pointer' }}>
|
|
291
|
+
<div className="nav-template-head" role="button" tabIndex={0} aria-expanded={tOpen} onClick={() => toggleEntry(tKey)} style={{ cursor: 'pointer' }}>
|
|
286
292
|
<i
|
|
287
293
|
className={`fa-solid fa-${template?.ui?.icon ?? 'circle'}`}
|
|
288
294
|
style={{ fontSize: 12, width: 14, textAlign: 'center', flexShrink: 0 }}
|
|
@@ -296,6 +302,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
296
302
|
<div key={node.id}>
|
|
297
303
|
<div
|
|
298
304
|
className={`nav-node-item${isActive ? ' active' : ''}`}
|
|
305
|
+
role="button" tabIndex={0} aria-current={isActive ? 'true' : undefined}
|
|
299
306
|
onClick={() => onNode(node.id)}
|
|
300
307
|
title={node.id}
|
|
301
308
|
style={isActive ? { '--nav-node-active-bg': colour } : undefined}
|
|
@@ -309,6 +316,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
309
316
|
<div className="nav-child-group" key={group.label}>
|
|
310
317
|
<div
|
|
311
318
|
className="nav-child-head"
|
|
319
|
+
role="button" tabIndex={0} aria-expanded={groupOpen}
|
|
312
320
|
style={{ cursor: 'pointer' }}
|
|
313
321
|
onClick={() => setOpenGroupKeys(prev => {
|
|
314
322
|
const next = new Set(prev);
|
|
@@ -327,6 +335,7 @@ function NavTree({ navTree, templates, activeNodeId, onNode, overlayIndicatorIds
|
|
|
327
335
|
<div
|
|
328
336
|
key={child.id}
|
|
329
337
|
className={`nav-node-item nav-node-child${childIsActive ? ' active' : ''}`}
|
|
338
|
+
role="button" tabIndex={0} aria-current={childIsActive ? 'true' : undefined}
|
|
330
339
|
onClick={() => onNode(child.id)}
|
|
331
340
|
title={child.id}
|
|
332
341
|
style={childIsActive ? { '--nav-node-active-bg': childColour } : undefined}
|
|
@@ -979,6 +988,10 @@ function App() {
|
|
|
979
988
|
const [loading, setLoading] = useState(true);
|
|
980
989
|
const [error, setError] = useState(null);
|
|
981
990
|
const [route, setRoute] = useState(() => parseRoute(window.location.hash));
|
|
991
|
+
const [mobile, setMobile] = useState(() => matchMedia('(max-width: 780px)').matches);
|
|
992
|
+
const retainedNode = React.useRef(null);
|
|
993
|
+
const listPane = React.useRef(null);
|
|
994
|
+
const detailPane = React.useRef(null);
|
|
982
995
|
const [refreshToken, setRefreshToken] = useState(0);
|
|
983
996
|
const [gitMode, setGitMode] = useState(false);
|
|
984
997
|
const [branches, setBranches] = useState([]);
|
|
@@ -1066,9 +1079,37 @@ function App() {
|
|
|
1066
1079
|
}, [viewingRef, gitMode, refreshGraphData]);
|
|
1067
1080
|
|
|
1068
1081
|
useEffect(() => {
|
|
1069
|
-
|
|
1082
|
+
let previous = parseRoute(window.location.hash);
|
|
1083
|
+
function syncHistory(next) {
|
|
1084
|
+
if (matchMedia('(max-width: 780px)').matches && next.pathname === '/node' && !history.state?.corumDetail) {
|
|
1085
|
+
// Seed a list entry behind direct links and nodes opened from other sections.
|
|
1086
|
+
const hash = location.hash;
|
|
1087
|
+
history.replaceState(null, '', buildRoute({ pathname: '/components', branch: next.branch }));
|
|
1088
|
+
history.pushState({ corumDetail: true }, '', hash);
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
syncHistory(previous);
|
|
1092
|
+
const handler = () => {
|
|
1093
|
+
const next = parseRoute(location.hash);
|
|
1094
|
+
if (next.pathname === '/node' && previous.pathname === '/components') {
|
|
1095
|
+
history.replaceState({ corumDetail: true }, '');
|
|
1096
|
+
} else {
|
|
1097
|
+
syncHistory(next);
|
|
1098
|
+
}
|
|
1099
|
+
previous = next;
|
|
1100
|
+
setRoute(next);
|
|
1101
|
+
};
|
|
1102
|
+
const query = matchMedia('(max-width: 780px)');
|
|
1103
|
+
const resize = () => {
|
|
1104
|
+
setMobile(query.matches);
|
|
1105
|
+
syncHistory(parseRoute(location.hash));
|
|
1106
|
+
};
|
|
1107
|
+
query.addEventListener('change', resize);
|
|
1070
1108
|
window.addEventListener('hashchange', handler);
|
|
1071
|
-
return () =>
|
|
1109
|
+
return () => {
|
|
1110
|
+
window.removeEventListener('hashchange', handler);
|
|
1111
|
+
query.removeEventListener('change', resize);
|
|
1112
|
+
};
|
|
1072
1113
|
}, []);
|
|
1073
1114
|
|
|
1074
1115
|
useEffect(() => {
|
|
@@ -1083,9 +1124,38 @@ function App() {
|
|
|
1083
1124
|
}, []);
|
|
1084
1125
|
|
|
1085
1126
|
const activeNodeId = route.pathname === '/node' ? route.params.get('id') : null;
|
|
1127
|
+
if (activeNodeId) retainedNode.current = activeNodeId;
|
|
1128
|
+
const detailOpen = route.pathname === '/node';
|
|
1086
1129
|
const activeSection = activeNodeId ? 'components' : (route.pathname.slice(1) || 'dashboard');
|
|
1087
1130
|
const navTree = useMemo(() => buildNavTree(nodes, templates), [nodes, templates]);
|
|
1088
1131
|
const showTree = (activeSection === 'components' || activeNodeId) && activeSection !== 'graph';
|
|
1132
|
+
useEffect(() => {
|
|
1133
|
+
if (!mobile || !showTree) return;
|
|
1134
|
+
const pane = detailOpen ? detailPane.current : listPane.current;
|
|
1135
|
+
let frame;
|
|
1136
|
+
const observer = new MutationObserver(focusTarget);
|
|
1137
|
+
function focusTarget() {
|
|
1138
|
+
const target = pane?.querySelector(detailOpen ? 'h1' : '.nav-node-item.active');
|
|
1139
|
+
if (!target) return;
|
|
1140
|
+
target.tabIndex = detailOpen ? -1 : 0;
|
|
1141
|
+
target.focus({ preventScroll: true });
|
|
1142
|
+
if (document.activeElement === target) {
|
|
1143
|
+
observer.disconnect();
|
|
1144
|
+
} else {
|
|
1145
|
+
// Visibility may still be changing as the pane starts its transition.
|
|
1146
|
+
cancelAnimationFrame(frame);
|
|
1147
|
+
frame = requestAnimationFrame(focusTarget);
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
// Node headings arrive asynchronously after the cluster request.
|
|
1151
|
+
if (pane) observer.observe(pane, { childList: true, subtree: true });
|
|
1152
|
+
focusTarget();
|
|
1153
|
+
return () => {
|
|
1154
|
+
observer.disconnect();
|
|
1155
|
+
cancelAnimationFrame(frame);
|
|
1156
|
+
};
|
|
1157
|
+
}, [mobile, detailOpen, activeNodeId, showTree]);
|
|
1158
|
+
|
|
1089
1159
|
const activeOverlayRefs = useMemo(() =>
|
|
1090
1160
|
overlayMode === 'single' ? [] :
|
|
1091
1161
|
overlayMode === 'consolidated' ? branches.filter(branch => branch.ref !== viewingRef).map(branch => branch.ref) :
|
|
@@ -1138,6 +1208,7 @@ function App() {
|
|
|
1138
1208
|
} else if (route.pathname === '/node') {
|
|
1139
1209
|
page = (
|
|
1140
1210
|
<NodePage
|
|
1211
|
+
key={activeNodeId}
|
|
1141
1212
|
nodeId={activeNodeId}
|
|
1142
1213
|
templates={templates}
|
|
1143
1214
|
onNavigate={handleNode}
|
|
@@ -1190,18 +1261,36 @@ function App() {
|
|
|
1190
1261
|
}}
|
|
1191
1262
|
/>
|
|
1192
1263
|
)}
|
|
1193
|
-
<div className=
|
|
1194
|
-
<
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1264
|
+
<div className={`main${showTree ? ' master-detail' : ''}${detailOpen ? ' detail-open' : ''}`}>
|
|
1265
|
+
<div
|
|
1266
|
+
className="list-pane" ref={listPane}
|
|
1267
|
+
inert={mobile && showTree && detailOpen ? '' : undefined}
|
|
1268
|
+
aria-hidden={mobile && showTree && detailOpen ? true : undefined}
|
|
1269
|
+
>
|
|
1270
|
+
<NavRail activeSection={activeSection} onSection={handleSection} debugMode={debugMode} onDebugMode={handleDebugMode} />
|
|
1271
|
+
{mobile && showTree && !detailOpen && (loading || error) && page}
|
|
1272
|
+
{showTree && !loading && !error && (
|
|
1273
|
+
<NavTree
|
|
1274
|
+
navTree={navTree}
|
|
1275
|
+
templates={templates}
|
|
1276
|
+
activeNodeId={activeNodeId || retainedNode.current}
|
|
1277
|
+
onNode={handleNode}
|
|
1278
|
+
overlayIndicatorIds={overlayIndicatorIds}
|
|
1279
|
+
/>
|
|
1280
|
+
)}
|
|
1281
|
+
</div>
|
|
1282
|
+
<div
|
|
1283
|
+
className="detail-pane" ref={detailPane}
|
|
1284
|
+
inert={mobile && showTree && !detailOpen ? '' : undefined}
|
|
1285
|
+
aria-hidden={mobile && showTree && !detailOpen ? true : undefined}
|
|
1286
|
+
>
|
|
1287
|
+
{showTree && (
|
|
1288
|
+
<button type="button" className="mobile-back" onClick={() => history.back()}>
|
|
1289
|
+
<span aria-hidden="true">←</span> Back to components
|
|
1290
|
+
</button>
|
|
1291
|
+
)}
|
|
1292
|
+
{page}
|
|
1293
|
+
</div>
|
|
1205
1294
|
</div>
|
|
1206
1295
|
</>
|
|
1207
1296
|
);
|
package/web/primitives.jsx
CHANGED
|
@@ -160,6 +160,10 @@ function buildPropertyRows(entries, onNavigate, depth = 0, parentPath = '', prop
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
function TableScroll({ children, className = '' }) {
|
|
164
|
+
return <div className="table-scroll"><div className={className}>{children}</div></div>;
|
|
165
|
+
}
|
|
166
|
+
|
|
163
167
|
function PropertiesTable({ properties, onNavigate, propertyHints = {} }) {
|
|
164
168
|
const entries = Object.entries(properties ?? {});
|
|
165
169
|
const rows = buildPropertyRows(entries, onNavigate, 0, '', propertyHints);
|
|
@@ -168,20 +172,22 @@ function PropertiesTable({ properties, onNavigate, propertyHints = {} }) {
|
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
return (
|
|
171
|
-
<
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<
|
|
176
|
-
<
|
|
177
|
-
{row.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
<TableScroll>
|
|
176
|
+
<table className="prop-table">
|
|
177
|
+
<tbody>
|
|
178
|
+
{rows.map(row => (
|
|
179
|
+
<tr key={row.key} className={`prop-row${row.depth > 0 ? ' nested' : ''}`}>
|
|
180
|
+
<td className="mono prop-key-cell">
|
|
181
|
+
<span className="prop-key-label" style={{ '--prop-depth': row.depth }}>
|
|
182
|
+
{row.label}
|
|
183
|
+
</span>
|
|
184
|
+
</td>
|
|
185
|
+
<td>{row.value}</td>
|
|
186
|
+
</tr>
|
|
187
|
+
))}
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
190
|
+
</TableScroll>
|
|
185
191
|
);
|
|
186
192
|
}
|
|
187
193
|
|
|
@@ -667,24 +673,26 @@ function SchemaCard({ title, nodes, allNodes, edges, anchorIdForNode, overlayFie
|
|
|
667
673
|
</div>
|
|
668
674
|
<div className="label-sm mono">{enumNode.id}</div>
|
|
669
675
|
</div>
|
|
670
|
-
<
|
|
671
|
-
<div className="
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
{values.length === 0 ? (
|
|
676
|
-
<div className="enum-row">
|
|
677
|
-
<div className="label-sm">No values.</div>
|
|
678
|
-
<div />
|
|
679
|
-
<div />
|
|
680
|
-
</div>
|
|
681
|
-
) : values.map(value => (
|
|
682
|
-
<div key={value.id} className="enum-row">
|
|
683
|
-
<div className="name">{enumValueDisplayName(value)}</div>
|
|
684
|
-
<div className="description">{enumValueDescription(value)}</div>
|
|
685
|
-
<div className="state"><StateTag state={value.state} /></div>
|
|
676
|
+
<TableScroll className="enum-table">
|
|
677
|
+
<div className="enum-row enum-row-head">
|
|
678
|
+
<div className="label-xs">Name</div>
|
|
679
|
+
<div className="label-xs">Description</div>
|
|
680
|
+
<div className="label-xs">Status</div>
|
|
686
681
|
</div>
|
|
687
|
-
|
|
682
|
+
{values.length === 0 ? (
|
|
683
|
+
<div className="enum-row">
|
|
684
|
+
<div className="label-sm">No values.</div>
|
|
685
|
+
<div />
|
|
686
|
+
<div />
|
|
687
|
+
</div>
|
|
688
|
+
) : values.map(value => (
|
|
689
|
+
<div key={value.id} className="enum-row">
|
|
690
|
+
<div className="name">{enumValueDisplayName(value)}</div>
|
|
691
|
+
<div className="description">{enumValueDescription(value)}</div>
|
|
692
|
+
<div className="state"><StateTag state={value.state} /></div>
|
|
693
|
+
</div>
|
|
694
|
+
))}
|
|
695
|
+
</TableScroll>
|
|
688
696
|
</div>
|
|
689
697
|
);
|
|
690
698
|
})}
|
|
@@ -713,27 +721,29 @@ function SchemaCard({ title, nodes, allNodes, edges, anchorIdForNode, overlayFie
|
|
|
713
721
|
<div className="label-sm mono">{schema.id}</div>
|
|
714
722
|
</div>
|
|
715
723
|
{ghostFields.length > 0 && <OverlayLegend overlayRefs={overlayRefs} />}
|
|
716
|
-
<
|
|
717
|
-
<div
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
724
|
+
<TableScroll className="field-table">
|
|
725
|
+
<div className="field-row field-row-head">
|
|
726
|
+
<div />
|
|
727
|
+
<div className="label-xs">Name</div>
|
|
728
|
+
<div className="label-xs">Type</div>
|
|
729
|
+
<div className="label-xs">Collection</div>
|
|
730
|
+
<div className="label-xs">Req</div>
|
|
731
|
+
<div className="label-xs">State</div>
|
|
732
|
+
<div className="label-xs">Links</div>
|
|
733
|
+
</div>
|
|
734
|
+
<SchemaFieldRows
|
|
735
|
+
schemaNodeId={schema.id}
|
|
736
|
+
model={model}
|
|
737
|
+
visited={new Set()}
|
|
738
|
+
edges={edges ?? []}
|
|
739
|
+
overlayFields={overlayFields}
|
|
740
|
+
overlayRefs={overlayRefs}
|
|
741
|
+
compact={compact}
|
|
742
|
+
/>
|
|
743
|
+
{ghostFields.length > 0 && (
|
|
744
|
+
<GhostFieldRows fields={ghostFields} overlayRefs={overlayRefs} compact={compact} />
|
|
745
|
+
)}
|
|
746
|
+
</TableScroll>
|
|
737
747
|
</div>
|
|
738
748
|
);
|
|
739
749
|
})}
|
package/web/style.css
CHANGED
|
@@ -103,6 +103,21 @@ button {
|
|
|
103
103
|
min-height: 0;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
.list-pane {
|
|
107
|
+
display: flex;
|
|
108
|
+
min-height: 0;
|
|
109
|
+
}
|
|
110
|
+
.detail-pane {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
flex: 1;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
min-height: 0;
|
|
116
|
+
}
|
|
117
|
+
.mobile-back {
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
106
121
|
.nav-rail {
|
|
107
122
|
display: flex;
|
|
108
123
|
flex-direction: column;
|
|
@@ -313,6 +328,23 @@ button {
|
|
|
313
328
|
color: #fff;
|
|
314
329
|
}
|
|
315
330
|
|
|
331
|
+
.table-scroll {
|
|
332
|
+
max-width: 100%;
|
|
333
|
+
overflow-x: auto;
|
|
334
|
+
-webkit-overflow-scrolling: touch;
|
|
335
|
+
overscroll-behavior-x: contain;
|
|
336
|
+
scrollbar-width: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.table-scroll::-webkit-scrollbar {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Minimum grid tracks plus gaps and padding; retain desktop column sizing. */
|
|
344
|
+
/* 724px of tracks + six 10px gaps + two 14px paddings. */
|
|
345
|
+
.field-table { min-width: 812px; }
|
|
346
|
+
.enum-table { min-width: 532px; }
|
|
347
|
+
|
|
316
348
|
.prop-table {
|
|
317
349
|
width: 100%;
|
|
318
350
|
border-collapse: collapse;
|
|
@@ -557,7 +589,9 @@ button {
|
|
|
557
589
|
|
|
558
590
|
.nav-tree {
|
|
559
591
|
width: 100%;
|
|
560
|
-
|
|
592
|
+
min-width: 0;
|
|
593
|
+
min-height: 0;
|
|
594
|
+
flex: 1;
|
|
561
595
|
border-right: none;
|
|
562
596
|
border-bottom: 1px solid var(--rule);
|
|
563
597
|
}
|
|
@@ -1699,3 +1733,60 @@ button {
|
|
|
1699
1733
|
border-radius: 50%;
|
|
1700
1734
|
flex-shrink: 0;
|
|
1701
1735
|
}
|
|
1736
|
+
|
|
1737
|
+
@media (max-width: 780px) {
|
|
1738
|
+
.branch-bar {
|
|
1739
|
+
height: auto;
|
|
1740
|
+
min-height: 38px;
|
|
1741
|
+
flex-wrap: wrap;
|
|
1742
|
+
padding-block: 6px;
|
|
1743
|
+
}
|
|
1744
|
+
#root {
|
|
1745
|
+
height: 100dvh;
|
|
1746
|
+
}
|
|
1747
|
+
.list-pane {
|
|
1748
|
+
flex-direction: column;
|
|
1749
|
+
flex-shrink: 0;
|
|
1750
|
+
}
|
|
1751
|
+
.master-detail {
|
|
1752
|
+
position: relative;
|
|
1753
|
+
overflow: hidden;
|
|
1754
|
+
}
|
|
1755
|
+
.master-detail > .list-pane, .master-detail > .detail-pane {
|
|
1756
|
+
position: absolute;
|
|
1757
|
+
inset: 0;
|
|
1758
|
+
width: 100%;
|
|
1759
|
+
background: var(--paper);
|
|
1760
|
+
transition: transform 220ms ease, visibility 220ms;
|
|
1761
|
+
}
|
|
1762
|
+
.master-detail > .detail-pane {
|
|
1763
|
+
transform: translateX(100%);
|
|
1764
|
+
visibility: hidden;
|
|
1765
|
+
}
|
|
1766
|
+
.master-detail.detail-open > .list-pane {
|
|
1767
|
+
transform: translateX(-100%);
|
|
1768
|
+
visibility: hidden;
|
|
1769
|
+
}
|
|
1770
|
+
.master-detail.detail-open > .detail-pane {
|
|
1771
|
+
transform: translateX(0);
|
|
1772
|
+
visibility: visible;
|
|
1773
|
+
}
|
|
1774
|
+
.mobile-back {
|
|
1775
|
+
display: flex;
|
|
1776
|
+
align-items: center;
|
|
1777
|
+
gap: 10px;
|
|
1778
|
+
min-height: 44px;
|
|
1779
|
+
padding: 8px 16px;
|
|
1780
|
+
border: 0;
|
|
1781
|
+
border-bottom: 1px solid var(--rule);
|
|
1782
|
+
background: var(--paper-2);
|
|
1783
|
+
color: var(--ink);
|
|
1784
|
+
cursor: pointer;
|
|
1785
|
+
flex-shrink: 0;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1789
|
+
.master-detail > .list-pane, .master-detail > .detail-pane {
|
|
1790
|
+
transition: none;
|
|
1791
|
+
}
|
|
1792
|
+
}
|