From a5ff69f024a39f2f1efcca1e13ec2d81e6850b21 Mon Sep 17 00:00:00 2001 From: TyperBody Date: Sat, 26 Sep 2026 02:32:36 +0800 Subject: [PATCH] fix(operation-trace): polish panel toolbar and record-header layout - Group the toolbar actions into a single right-aligned cluster so "Download logs" and "Refresh" sit together instead of being spread apart by the toolbar's space-between layout. - Align the record header's filter row with the rest of the panel: replace the ``ml-auto`` push (which left the filters misaligned once they wrapped onto a second line) with ``justify-between``. --- .../OperationTracePanel.tsx | 82 +++++++++++-------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/web/src/app/home/components/workspace-settings/OperationTracePanel.tsx b/web/src/app/home/components/workspace-settings/OperationTracePanel.tsx index a9bc4a46c..62fc7bf96 100644 --- a/web/src/app/home/components/workspace-settings/OperationTracePanel.tsx +++ b/web/src/app/home/components/workspace-settings/OperationTracePanel.tsx @@ -303,39 +303,45 @@ export default function OperationTracePanel({ {t('operationTrace.title')}

- {governance && ( - 0 ? 'default' : 'outline'} + {/* Keep the actions in one right-aligned cluster: the panel toolbar + spreads direct children apart, so they are grouped instead. */} +
+ {governance && ( + 0 ? 'default' : 'outline'} + > + {t( + `operationTrace.levelNames.${governance.configured_level_name}`, + )} + + )} + - + {exporting ? ( + + ) : ( + + )} + {t('operationTrace.export')} + + +
@@ -421,7 +427,9 @@ export default function OperationTracePanel({ max={governance?.limits.max_dedupe_window_seconds ?? 3600} value={dedupeSeconds} disabled={!canConfigure} - onChange={(event) => setDedupeSeconds(Number(event.target.value))} + onChange={(event) => + setDedupeSeconds(Number(event.target.value)) + } />