mirror of
https://github.com/sinanyuntu/trade-message-center.git
synced 2026-09-17 13:22:11 +08:00
fix: move action status tooltip to top edge
This commit is contained in:
@@ -88,7 +88,7 @@ const createStatusContainer = (document: Document): HTMLDivElement => {
|
||||
container.setAttribute("role", "status");
|
||||
container.style.cssText = [
|
||||
"position: fixed",
|
||||
"top: 76px",
|
||||
"top: 0",
|
||||
"left: 50%",
|
||||
"transform: translateX(-50%)",
|
||||
"z-index: 2147483647",
|
||||
|
||||
@@ -80,6 +80,7 @@ test("starts one neutral status row and does not duplicate its id", () => {
|
||||
const container = pageWindow.document.body.children[0];
|
||||
assert.equal(container.getAttribute("aria-live"), "polite");
|
||||
assert.match(container.style.cssText, /position: fixed/u);
|
||||
assert.match(container.style.cssText, /top: 0/u);
|
||||
assert.match(container.style.cssText, /pointer-events: none/u);
|
||||
assert.equal(container.children.length, 1);
|
||||
assert.equal(container.children[0].textContent, "正在收集所有对话历史");
|
||||
|
||||
Reference in New Issue
Block a user