fix: add whitespace before required actions in info page

This commit is contained in:
Jan Beckmann 2025-03-21 11:37:08 +01:00
parent bc396bc41b
commit da3e7514f0
No known key found for this signature in database
GPG Key ID: 08A9548FAF55AEDE
2 changed files with 3 additions and 3 deletions

View File

@ -31,10 +31,10 @@ export default function Info(props: PageProps<Extract<KcContext, { pageId: "info
dangerouslySetInnerHTML={{
__html: kcSanitize(
(() => {
let html = message.summary;
let html = message.summary?.trim();
if (requiredActions) {
html += "<b>";
html += " <b>";
html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", ");

View File

@ -46,7 +46,7 @@ export const WithRequiredActions: Story = {
kcContext={{
messageHeader: "Message header",
message: {
summary: "Required actions: "
summary: "Required actions:"
},
requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL", "CUSTOM_ACTION"],
"x-keycloakify": {