Skip to content

Commit 6878ae8

Browse files
authored
Minor fixes for Auth Emulator IDP widget. (#3774)
* Minor fixes for Auth Emulator IDP widget. * Changelog.
1 parent 05b5872 commit 6878ae8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
- `ext:dev:publish` and `ext:update` now support --force and --non-interactive flags.
22
- Fixes issue where account specified by `login:use` was not being correctly loaded (#3759).
3+
- Fixes minor layout issues in Auth Emulator IDP sign-in page (#3774).

src/emulator/auth/handlers.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ export function registerHandlers(
195195
<span class="mdc-list-item__graphic material-icons" aria-hidden=true>person</span>`
196196
}
197197
<span class="mdc-list-item__text"><span class="mdc-list-item__primary-text">${
198-
info.displayName
198+
info.displayName || "(No display name)"
199+
}</span>
200+
<span class="mdc-list-item__secondary-text fallback-secondary-text">${
201+
info.email || ""
199202
}</span>
200-
<span class="mdc-list-item__secondary-text fallback-secondary-text">${info.email}</span>
201203
</li>`
202204
)
203205
.join("\n");

src/emulator/auth/widget_ui.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export const WIDGET_UI = `
491491
<meta charset="utf-8">
492492
<meta name="viewport" content="width=device-width, initial-scale=1.0">
493493
<title>Auth Emulator IDP Login Widget</title>
494-
<link href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
494+
<link href="https://unpkg.com/material-components-web@10/dist/material-components-web.min.css" rel="stylesheet">
495495
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
496496
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
497497
<style>${STYLE}</style>
@@ -604,6 +604,6 @@ export const WIDGET_UI = `
604604
</div>
605605
</div>
606606
</div>
607-
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
607+
<script src="https://unpkg.com/material-components-web@10/dist/material-components-web.min.js"></script>
608608
<script>${SCRIPT}</script>
609609
`;

0 commit comments

Comments
 (0)