From 16b68417102aa03218ffc8072b8917f745e28a51 Mon Sep 17 00:00:00 2001 From: ZhengYS <> Date: Mon, 10 Aug 2026 12:00:30 +0800 Subject: [PATCH] fix: keep function dialog footer accessible --- .../src/components/FunctionDialog.vue | 3 ++- .../manager-web/tests/frontendContract.test.mjs | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/main/manager-web/src/components/FunctionDialog.vue b/main/manager-web/src/components/FunctionDialog.vue index 595159ca1..3599cd9da 100644 --- a/main/manager-web/src/components/FunctionDialog.vue +++ b/main/manager-web/src/components/FunctionDialog.vue @@ -656,6 +656,7 @@ export default { .drawer-footer { position: absolute; bottom: 0; + z-index: 2; width: 100%; border-top: 1px solid #e8e8e8; padding: 10px 16px; @@ -894,4 +895,4 @@ export default { padding: 10px 0; } } - \ No newline at end of file + diff --git a/main/manager-web/tests/frontendContract.test.mjs b/main/manager-web/tests/frontendContract.test.mjs index 763fde5c4..5d6a59be1 100644 --- a/main/manager-web/tests/frontendContract.test.mjs +++ b/main/manager-web/tests/frontendContract.test.mjs @@ -10,6 +10,10 @@ const correctWordApiSource = await readFile( new URL('../src/apis/module/correctWord.js', import.meta.url), 'utf8', ); +const functionDialogSource = await readFile( + new URL('../src/components/FunctionDialog.vue', import.meta.url), + 'utf8', +); test('address-book permission state consistently uses the target device MAC', () => { assert.match( @@ -61,3 +65,16 @@ test('correct-word pagination maps the UI page size to the backend limit query', ); assert.doesNotMatch(correctWordApiSource, /pageSize: params\.pageSize/); }); + +test('function dialog footer stays above the expanding MCP tools section', () => { + const mcpLayer = functionDialogSource.match( + /\.mcp-access-point\s*\{[^}]*z-index:\s*(\d+);/s, + ); + const footerLayer = functionDialogSource.match( + /\.drawer-footer\s*\{[^}]*z-index:\s*(\d+);/s, + ); + + assert.ok(mcpLayer, 'MCP section should define its stacking layer'); + assert.ok(footerLayer, 'drawer footer should define its stacking layer'); + assert.ok(Number(footerLayer[1]) > Number(mcpLayer[1])); +});