mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
Fixes auth_message
so that it correctly renders HTML (#7545)
* quick fix * add changeset * story --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
98aa8082dd
commit
1fa2e914ca
6
.changeset/smooth-guests-drive.md
Normal file
6
.changeset/smooth-guests-drive.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/app": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fixes `auth_message` so that it correctly renders HTML
|
@ -25,3 +25,9 @@
|
||||
name="Login page with auth message"
|
||||
args={{ auth_message: "Log in to this great gradio app" }}
|
||||
/>
|
||||
<Story
|
||||
name="Login page with HTML auth message"
|
||||
args={{
|
||||
auth_message: "<em>Log in to this <strong>great</strong> gradio app</em>"
|
||||
}}
|
||||
/>
|
||||
|
@ -37,7 +37,7 @@
|
||||
<Column variant="panel" min_width={480}>
|
||||
<h2>{$_("login.login")}</h2>
|
||||
{#if auth_message}
|
||||
<p class="auth">{auth_message}</p>
|
||||
<p class="auth">{@html auth_message}</p>
|
||||
{/if}
|
||||
{#if space_id}
|
||||
<p class="auth">
|
||||
|
Loading…
Reference in New Issue
Block a user