fix: the connection prompt shows the shared address whole (closes #517)
The element holding the address on the connection prompt was a flex row, so the title line and the address that renderAddressHtml() returns sat side by side and the address got only the width left over, which hid its last nine characters. It is now a plain block, as on the signature screen, so the address has a row of its own. The Chrome browser suite's connection test now measures that row with the check the other screens already use. Model: opus-5-5
This commit is contained in:
@@ -3857,6 +3857,9 @@ test("eth_requestAccounts approved returns the selected address (#183)", async (
|
||||
shown.toLowerCase().includes(env.expectedAddress.toLowerCase()),
|
||||
"the site prompt shows the wrong address: " + JSON.stringify(shown),
|
||||
);
|
||||
// The text above is there even when the row is too narrow to show it
|
||||
// all; this measures that the whole address is visible (#517).
|
||||
await assertAddressesFit(popup, "the connection prompt");
|
||||
|
||||
// Remembered, so the connection survives a background worker that MV3
|
||||
// terminates after 30 seconds idle. The in-memory connectedSites map
|
||||
|
||||
Reference in New Issue
Block a user