diff --git a/docs/screenshots/tasks-graph-controls-after.png b/docs/screenshots/tasks-graph-controls-after.png
new file mode 100644
index 00000000..7907c863
Binary files /dev/null and b/docs/screenshots/tasks-graph-controls-after.png differ
diff --git a/docs/screenshots/tasks-graph-controls-before.png b/docs/screenshots/tasks-graph-controls-before.png
new file mode 100644
index 00000000..a1bf556c
Binary files /dev/null and b/docs/screenshots/tasks-graph-controls-before.png differ
diff --git a/src/client/TasksGraph.tsx b/src/client/TasksGraph.tsx
index 687eed04..340eb778 100644
--- a/src/client/TasksGraph.tsx
+++ b/src/client/TasksGraph.tsx
@@ -152,6 +152,7 @@ export function ViewModeToggle(props: {
: }
aria-label={t(toTree ? 'tasksViewSwitchToTree' : 'tasksViewSwitchToGraph')}
title={t(toTree ? 'tasksViewSwitchToTree' : 'tasksViewSwitchToGraph')}
diff --git a/src/client/tasks-graph.module.css b/src/client/tasks-graph.module.css
index 484046f0..fb8e9425 100644
--- a/src/client/tasks-graph.module.css
+++ b/src/client/tasks-graph.module.css
@@ -654,6 +654,7 @@
display: flex;
flex-direction: row;
align-items: center;
+ overflow: hidden;
background: var(--dsw-alias-bg-layer-1);
border: 1px solid var(--dsw-alias-border-l2);
border-radius: 3px;
@@ -674,6 +675,7 @@
justify-content: center;
padding: 0 4px;
border: none;
+ border-radius: 0;
background: none;
color: var(--dsw-alias-label-secondary);
font-family: var(--ds-font-family-code, monospace);
@@ -708,6 +710,7 @@
justify-content: center;
padding: 0 8px;
border: none;
+ border-radius: 0;
background: none;
color: var(--dsw-alias-label-secondary);
font: var(--dsw-font-xxxs-11);
diff --git a/tests/tasks-motion.spec.ts b/tests/tasks-motion.spec.ts
index 314e0f06..d23f0911 100644
--- a/tests/tasks-motion.spec.ts
+++ b/tests/tasks-motion.spec.ts
@@ -41,6 +41,19 @@ describe('Tasks page motion', () => {
expect(source('src/client/JobsDrawer.tsx')).toContain('useAutoAnimateRef')
})
+ it('keeps graph control menu items square while clipping the rounded cluster', () => {
+ const styles = source('src/client/tasks-graph.module.css')
+ const controls = /\.controls \{([\s\S]*?)\n\}/.exec(styles)?.[1]
+ const button = /\.controlBtn \{([\s\S]*?)\n\}/.exec(styles)?.[1]
+ const textButton = /\.controlText \{([\s\S]*?)\n\}/.exec(styles)?.[1]
+ if (controls === undefined || button === undefined || textButton === undefined) {
+ throw new Error('graph control rules must exist')
+ }
+ expect(controls).toContain('overflow: hidden')
+ expect(button).toContain('border-radius: 0')
+ expect(textButton).toContain('border-radius: 0')
+ })
+
it('gives canvas cards a mount-only CSS entrance that respects reduced motion', () => {
const styles = source('src/client/tasks-graph.module.css')
const node = /\.node \{([\s\S]*?)\n\}/.exec(styles)?.[1]